Area hostname Property
Area Object
Definition and Usage
The hostname property can set or return the hostname part of the href attribute value.
Syntax
areaObject.hostname=
hostname
Browser support





All major browsers support the hostname property.
Example
Example
The following example returns the hostname of the "Venus" region in the image map:
Hostname of the Venus region:
The example above produces the following output:
Hostname of the Venus region: www.runoob.com
Try it »
Area Object