Examveda
Examveda

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

Answer: Option A

Solution(By Examveda Team)

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

This Question Belongs to Javascript >> Parsing, Benchmarking And Logging

Join The Discussion

Related Questions on Parsing, Benchmarking and Logging