Q. What is the purpose of the window.location object in JavaScript?
β
Correct Answer: (A)
Get the URL and redirect
Explanation: The window.location object can be used to get the current page address (URL) and to redirect the browser to a new page.