Vidyalelo
JavaScript · Q11

Document Object Model And Event Handling

Programming · JavaScript · question 11

Q11

The URL property belongs to which of the following object?

A.
Document
Answer
B.
Element
C.
Location
D.
All of the mentioned

Answer: Option A

Solution

Answer: Option A
Solution:
The Document object has a URL property, which is a static string that holds the URL of the document when it was first loaded.