javascript location hash

hashNN 2 IE 3 DOM n/a  

Read/Write  

Indicates that portion of a URL following the # symbol, referring to an anchor location in a document. This property contains its data only if the user has explicitly navigated to an anchor, and is not just scrolling to it. Do not include the # symbol when setting the property.

 
Example
 
location.hash = "section3";
 
Value

String.

 
Default

None.


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