A

Admin • 833K Points
Coach

Q. What is the purpose of the window.location object in JavaScript?

  • (A) Get the URL and redirect
  • (B) Get the location of the cursor
  • (C) Get the path to the next page
  • (D) All of the mentioned
  • Correct Answer - Option(A)
  • Views: 28
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.