Anchor.hash (Property)

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

Availability:

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.

Warnings:

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