javascript A hash

hash NN 2 IE 3 DOM 1  

Read/Write  

Provides that portion of the href attribute's URL following the # symbol, referring to an anchor location in a document. Do not include the # symbol when setting the property.

 
Example
 
document.getElementById("myLink").hash = "section3";
document.links[2].hash = "section3";
 
Value

String.

 
Default

None.


175,Nickname,Homepage or email,Comments here,Add comment