Multiple choice

What does window.location object in javascript?

  1. It opens a new window by passing url in the browser.

  2. It returns the url of the current page.

  3. It redirects the user to the other location or url.

  4. Both (2) and (3)

  5. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is a true statement about window.locaton object.