'hash' Example : Hash « Document « JavaScript DHTML
- JavaScript DHTML
- Document
- Hash
'hash' Example
<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>
Related examples in the same category