Click to return to the DHTML, HTML     
LISTING Element | LISTING...     MAP Element | MAP Object     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

location Object


Contains information about the current URL.

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 below are set.

This object is available in script as of Microsoft® Internet Explorer 3.0.

Members

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:

document, window



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.