Anchor.href (Property)

On MSIE the link.href property is also available as the anchor.href property.


DOM level - 1
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:-myAnchor.href
-myAnchor.href = newHref
HTML syntax:<A HREF="...">

This yields the entire value of the HREF attribute in an <A> tag.

You can redefine the entire HREF content by assigning a new value to this property.


See also:Anchor object, Anchor.hash,, Anchor.hostname, Anchor.pathname, Anchor.port, Anchor.protocol,,, Location.href, URL, Url.href