Anchor.hash (Property)

On MSIE the Url.hash property is also available as the Anchor.hash property.


JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0
Property/method value type:String primitive
JavaScript syntax:-myAnchor.hash
-myAnchor.hash = newValue
HTML syntax:<A HREF="...">

This yields the hash suffix of the HREF value in an <A> tag.

You can assign a new value to this property, which will become a new anchor location within the document.


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