In JavaScript, Location object is a property of ______.

2019

In JavaScript, Location object is a property of ______.

Answer: B. Window objectIn JavaScript, the location object is a property of the window object and is used to get or change the current URL.

  1. A.

    Form object

  2. B.

    Window object

  3. C.

    Document object

  4. D.

    Location

Attempted by 515 students.

Show answer & explanation

Correct answer: B

In JavaScript, the location object is a property of the window object and is used to get or change the current URL.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Uppsc Polytechnic Lecturer 2025 Cs

Loading lesson…