This is deprecated now in favor of using the Document.URL property to access a Url object.
This location property is not the same as the location property that belongs to a window. The document.location property is a string containing the URL that the document was loaded from. The window.location property is a reference to the requested URL encapsulated in an object. Because of this, the document.location property is not preferred and you should use the document.URL property to avoid confusion.
This property is supposed to be read only. However, Netscape 4 allows this property value to be changed. This is not recommended practice and you should use the Window.location.href property to change the page in the window.