'hash' Syntax and Note : hash « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- hash
'hash' Syntax and Note
Note:
Read and write property.
Specifies the hash part of URL (the part that follows a # sign).
Syntax:
document.getElementById("elementID").hash = value
document.all.elementID.hash = value // IE only
location.hash = value
Related examples in the same category