Javascript Reference
Categories: A

javascript A host

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

host Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

This is the combination of the hostname and port (if any) of the server of the destination document for the link. If the port is explicitly part of the URL, the hostname and port are separated by a colon, just as they are in the URL. If the port number is not specified in an HTTP URL for IE, it automatically returns the default, port 80.

 
Example
 
document.getElementById("myLink").host = "www.gakaa.com:80";
document.links[2].host = "www.gakaa.com:80";
 
Value

String of hostname optionally followed by a colon and port number.

 
Default

Depends on server.

Aloha! gqd
Gundosqqa - 2013-08-20
Under moderation.
Gundoswyn - 2013-08-20
Under moderation.
Gundoslvs - 2013-08-20

Powered by Linode.