Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Objects
Link Object
Link.hash
Link.host
Link.hostname
Link.pathname
Link.port
Link.protocol
Link.search
PROPERTY: Link::href
object.
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 a link (stored in the first element of the
links
property) to a URL ...
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
...the following code would display the
href
property of it:
Code:
document.write(document.links[0].href)
Output:
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information