August 1999
Intermediate to advanced
1488 pages
72h 53m
English
window.location
The location property of the Window object returns the current URL of the document in the window.
Listing 7.549 pops up an alert box that contains the URL of the current window.
<script language="JavaScript"> <!-- Hide // Display the current URL in an alert box alert(window.location); // End hide ---> </script> |
Read now
Unlock full access