All Objects
Location Object
Location.hash
Location.host
Location.hostname
Location.pathname
Location.port
Location.protocol
Location.search
PROPERTY: Location::href
location.
href
href
is a property of both the
Link
and the
Location
objects and is a string specifying the entire URL, of which all other properties are substrings. If you wish to change a location, you can safely do so by setting the
href
property. Assuming your current window to be the URL...
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
...you could find out the
href
property as follows:
Code:
document.write(location.href)
Output:
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information