Most of the time, the document.URL value will be the same as the window.location.href value. However if a server redirect happened, then document.URL will contain the actual page that was loaded while window.location.href will contain the requested URL.
This property should be used in place of the document.location property which used-top be a string but is now a reference to the same object as the window.location property.
See also: | Document object, Document.location, Document.referrer, URL, Window.location |
Prev | Home | Next |
Document.uniqueID | Up | Document.vlinkColor |
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. |