Javascript Reference
Categories: AREA

javascript AREA host

@June 20, 2009, 12:52 p.m.
host Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  



Provides the combination of the hostname and port (if any) of the server of the destination document for the area 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.

document.getElementById("mapArea2").host = "";

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


Depends on server.

Powered by Linode.