What's new? | Help | Directory | Sign in
Google
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-property
DocumentLocationProperty  
The document.location property

Values

The document.location property returns a Location object.

This property is read/write.

Usage

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(document.location) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Comment by cweekly, May 16, 2008

Note document.location is write-only when accessed from another document, e.g. a frame. Explicitly setting a common "document.domain" value in each document enables writing of one doc's document.location from the other doc.


Sign in to add a comment