Javascript Reference
Categories: location

javascript location hash

@March 15, 2008, 1:22 a.m.
hashFirefox/Netscape/NN 2 IE 3 Chrome/Safari/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.


Powered by Linode.