|
Free Open Book
Sams Teach Yourself JavaScript in 24 Hours |
Working with the location ObjectA third child of the window object is the location object. This object stores information about the current URL stored in the window. For example, the following statement loads a URL into the current window: window.location.href="http://www.starlingtech.com"; The HRef property used in this statement contains the entire URL of the window's current location. You can also access portions of the URL with various properties of the location object. To explain these properties, consider the following URL: http://www.jsworkshop.com:80/test.cgi?lines=1#anchor The following properties represent parts of the URL:
|
Main Menu |
| 500 Juegos Gratis | 500 Giochi Gratis | 500 Jeux Gratuits | 500 Jogos Gratis | 500 Kostenlose Spiele |