Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. 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

    View Answer

    Workspace

    Answer : Option A

    Explanation :

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


Be The First To Comment