javascript location hostname
| hostname | NN 2 IE 3 DOM n/a |
| Read/Write | |
|
Provides the combination of the hostname of the server (i.e., a two-dot address consisting of server name and domain) that serves up the current document. The hostname property does not include the port number. |
|
| Example | |
if (location.hostname == "www.royh.cn") {
...
}
|
|
| Value | |
|
String of hostname (server and domain). |
|
| Default | |
|
Depends on server. |
|
Previous: javascript location href
Next: javascript location host
1202,Nickname,Homepage or email,Comments here,Add comment
