location

This object is used to load a new page into the 'location' object's value. That is, with it you can load a new page into the current browser window. Every browser window that has successfully loaded a web page has a location objct within its heirarchical tree. Thisobject represents the current document. Loading a new value (a new URL) into the location object will result in a new page being displayed. Note that there are no event handlers or collections for this object.

DOM Reference

Internet Explorer

window.location

Netscape Navigator

window.location

The properties of the location object are:

hash
host
hostname
href
pathname
port
protocol
search

The Methods of the location object are:

assign()
reload()
replace()