javascript A protocol

protocol NN 2 IE 3 DOM 1  

Read/Write  

Indicates the protocol component of the URL assigned to the element's href attribute. 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
 
document.getElementById("secureLink").protocol = "https:";
 
Value

String.

 
Default

None.


186,Nickname,Homepage or email,Comments here,Add comment