Javascript Reference
Categories: A

javascript A protocol

@March 15, 2008, 1:22 a.m.

protocol Firefox/Netscape/NN 2 IE 3 Chrome/Safari/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.


Powered by Linode.