Single Choice Easy

QThe location property belongs to what object?

ID: #5080 Javascript DOM & Event Handling MCQ 133 views
Question Info
#5080Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic

Choose the Best Option

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

  • A Window
  • B Position
  • C Element
  • D Location
Correct Answer

Explanation

The URL of the current document displayed in the window is represented by the Location object, which is referred to by the location property of the Window object.
The current page address (URL) and a new page can both be requested using the window.location object.

Share This Question

Challenge a friend or share with your study group.