Javascript Reference
Categories: location

javascript location protocol

@March 15, 2008, 1:22 a.m.
protocolFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  

Read/Write  

Provides the protocol component of the URL. This consists of all URL information up to and including the first colon of a URL. Typical values are: "http:", "file:", "ftp:", and "mailto:".

 
Example
 
if (location.protocol == "file:") {
    // statements for treating document as local file
}
 
Value

String.

 
Default

None.

lipitor 20mg canada <a href="https://lipiws.top/">purchase lipitor generic</a> purchase lipitor for sale
Cznmjl - 2 weeks
Under moderation.
CraigMek - 2018-04-14
Under moderation.
CraigMek - 2018-04-13

Powered by Linode.