Area host Property
Return the hostname and port for a specific area in an image-map:
The result of x will be:
Try it yourself »
Definition and Usage
The host property sets or returns the hostname and port part of the href attribute value.
Note: If the port part is not specified in the URL, or is 80 (which is default), some browsers will not display the port part.
The host property is supported in all major browsers.
Return the host property:
Set the host property:
|hostname:port||The hostname and port of a URL|
|String||The domain name (or IP address) and port number of the href attribute value|
Thank You For Helping Us!
Your message has been sent to W3Schools.