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. |
Permanent URL:
http://javascript.gakaa.com/a-protocol.aspx
Powered by Linode.