Single Choice Easy

QWhich of the following objects has ownership of the URL property?

ID: #5087 Javascript DOM & Event Handling MCQ 100 views
Question Info
#5087Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Document
  • B Location
  • C Event
  • D Element
Correct Answer

Explanation

The URL of the document when it was originally loaded is stored in the static string URL attribute of the Document object.
You always begin by accessing the document object if you want to get to any element on an HTML page.

Share This Question

Challenge a friend or share with your study group.