Vidyalelo
JavaScript · Q9

Document Object Model And Event Handling

Programming · JavaScript · question 9

Q9

To which object does the location property belong?

A.
Window
Answer
B.
Position
C.
Element
D.
Location

Answer: Option A

Solution

Answer: Option A
Solution:
The location property of the Window object refers to a Location object, which represents the current URL of the document displayed in the window, and which also defines methods for making the window load a new document.