The hash property is a string beginning with a hash (#), that specifies an anchor name in an HTTP URL.
hash is a property of
both the Link and the Location
objects and is a string beginning with a hash (#). It specifies an anchor
name in an HTTP URL.
NOTE:
Although the hash property
can be set at any time, it is safer to set the href
property to change a link.
document.write(document.links[0].hash)
#local?email=name@otherco.com
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
...this code would
display the hash property of it.