Location JavaScript Tutorial

The hash property refers to the anchor portion of the URL, including the hash symbol (#).
If the URL contains a pound sign (#), this returns the content after it (for example, http://www.rntsoft.com/index#section1 has a hash equal to "#section1").


    
     Using the hash property of the Location object
    
    
    
    
    
    
    Click the button to get the current location.hash
    value of the following address:
    

    http://www.rntsoft.com