JavaScript DHTML/Document/Hash
"hash" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript">
function function1() { alert(document.getElementById("myLink").hash); }
</script> <a tabindex="2" id="myLink" href="test.htm#sty" target="_blank">
anchor element
</a> <button onclick="function1();">Hash Value</button> </body> </html>
</source>