Javascript Reference
Categories: A

javascript A port

@July 11, 2008, 2:19 p.m.

 

port Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  
Read/Write  

Provides the port component of the URL assigned to the A element's href attribute. This consists of all URL information following the colon after the last character of the domain name. The colon is not part of the port property value.

 
Example
 
document.getElementById("myLink").port = "80";
document.links[2].port = "80";
 
Value

String (a numeric value as string).

 
Default

None.


Powered by Linode.