The attributes of the object referred to by this property can be read or written to cause the window content to be reloaded under script control.
The object itself ought to be considered read only but its properties are modifiable. Consult the document for the location object for details of what you can read or write. In particular, refer to the window.location.href value as a way to load a new document into the window.
Do not confuse this location object with that belonging to the document. They are different.
Older versions of the web browsers used to treat this property as a read/write string containing the URL. The access to the URL value is now via the properties of the object referred to by this property and not via the property itself.
Prev | Home | Next |
Window.length | Up | Window.locationbar |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |