locationlocation*
*



Contents  *



Index  *Topic Contents
*Previous Topic: LISTING
*Next Topic: MAP

location

Description

Contains information on the current URL.

Remarks

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

By setting any of the following properties, the browser will initiate an immediate navigation to the newly specified URL.

Properties

hash, host, hostname, href, pathname, port, protocol, search

Methods

assign, reload, replace


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.