javascript A hostname

 

hostname NN 2 IE 3 DOM 1  

 

Read/Write  

This is the hostname of the server (i.e., a "two-dot" address consisting of server name and domain) of the destination document for the A link. The hostname property does not include the port number.

 
Example
 
document.getElementById("myLink").hostname = "www.royh.cn";
document.links[2].hostname = "www.royh.cn";
 
Value

String of hostname (server and domain).

 
Default

Depends on server.


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