Location JavaScript Tutorial

The hostname property represents the hostname portion of the URL.


    
     Using the hostname property of the Location object
    
    
    
    
    
    
    Click the button to get the current location.hostname
    

    http://www.rntsoft.com