Javascript Reference
Categories: location

javascript location host

@April 3, 2009, 9:27 a.m.
host Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  



Provides the combination of the hostname and port (if any) of the server that serves up the current document. 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 ( == "") {

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


Depends on server.

Aloha! bhr
Gundosqgt - 4 years
Under moderation.
Gundosqcy - 4 years
Under moderation.
Gundosqvg - 4 years

Powered by Linode.