Url.hash (Property)

The hash delimited item at the end of an HREF URL if there is one.


JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape version - 2.0
Opera browser - 3.0
Property/method value type:String primitive
JavaScript syntax:-myUrl.hash
-myUrl.hash = aLocation
HTML syntax:<A HREF="..."> <LINK HREF="...">
Argument list:aLocationA new named location within the document

This property yields a text string that contains the hash suffix from the URL if there is one.

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


Example code:

   <A NAME="EXAMPLE" HREF="http://www.mydomain.com/folder/file.html#abcdef">Click here</A><BR>
   // In testing, this did not work in Opera 5.0

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