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

 

Read/Write

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.

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

A full or relative URL as a string.

 
Default

Document URL.

Under moderation.
Charleseraw - 1 weeks
Under moderation.
Charleseraw - 2 weeks
Under moderation.
arkOa - 2 weeks

Powered by Linode.