Location.href (Property)

The URL for the page currently on display in the window owning this location.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myLocation.href

If you set this property, the window will load the new URL in, and replace the old content with the new.

See also:Anchor.href, Url.href