Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Area hostname Property

Area hostname Property

Area Object Reference 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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the hostname property.


Example

Example

The following example returns the hostname of the "Venus" region in the image map:

Runoob Tutorial(runoob.com) Venus

Hostname of the Venus region:

The example above produces the following output:

Hostname of the Venus region: www.runoob.com

Try it »


Area Object Reference Area Object