locationlocation*
*Contents  *Index  *Topic Contents
*Previous Topic: listStyleType
*Next Topic: loop

location

Description

Returns information on the current URL. The href property contains the entire URL, and the other properties contain portions of it. The full list of properties includes hash, host, hostname, href, pathname, port, protocol, and search.

Syntax

object.location[ = location]

Remarks

This property has read-write permissions, meaning you can change as well as retrieve its current value.

Applies To

document


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