Javascript Reference
Categories: document

javascript document location

@March 21, 2009, 8:30 a.m.
location Firefox/Netscape/NN <6 IE 3 Chrome/Safari/DOM n/a



Indicates the URL of the current document. This property was deprecated because it may conflict with the window.location property. Netscape 6 drops support for this property entirely. Use either the document.URL property, or, better, the window.location.href property.

document.location = "products/widget33.html";

A full or relative URL as a string.


Document URL.

Under moderation.
jobkeraw - 1 years
Under moderation.
burkeraw - 1 years
Under moderation.
jaberaw - 1 years

Powered by Linode.