43 out of 48 rated this helpful - Rate this topic

location object

[This documentation is preliminary and is subject to change.]

Contains information about the current URL.

Standards information

There are no standards that apply here.

Remarks

The href property contains the entire URL, while the other properties contain portions of the URL. The default property for the location object is location.href. For example, setting location='http://microsoft.com' is equivalent to setting location.href='http://microsoft.com'.

The browser immediately navigates to the specified URL when any of the properties listed are set.

 

 

Build date: 2/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ