Document.location (Property)

This is another name for the Document.URL property.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Deprecated
Property/method value type:Location object
JavaScript syntax:-myDocument.location

This is deprecated now in favor of using the Document.URL property to access a Url object.

In version 1.0 of JavaScript this was a simple string primitive value that contained the actual location of a window. It was not necessarily the same value as the Window.location.href value which always contained the requested location.

As of version 1.1 of JavaScript, this is now a reference to the same object that Window.location points at. However at the same time its use became deprecated.

Warnings:

See also:Document object, Document.lastModified, Document.referrer, Document.URL, Location object, Window.location