Which object holds the real content of the page in JavaScript?
2018
Which object holds the real content of the page in JavaScript?
Answer: A. Document — In JavaScript, the document object represents the web page and holds the page's actual content as the DOM. The window object represents the browser window,…
- A.
Document
- B.
Alert
- C.
Location
- D.
Window
Attempted by 584 students.
Show answer & explanation
Correct answer: A
In JavaScript, the document object represents the web page and holds the page's actual content as the DOM. The window object represents the browser window, location stores URL information, and alert displays a message dialog. Hence the correct answer is Document.
Loading lesson…