Location JavaScript Tutorial

The protocol property represents the protocol portion of the URL.
This is located in the beginning of the URL address (the text before ://).
For example, the protocol for http://www.rntsoft.com is http: and the protocol for ftp://www.yourserver.com is ftp:.


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

    http://www.rntsoft.com