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

HTML DOM Area href Property

Area href Property

Area Object Reference Area Object


Definition and Usage

The href property can set or return the value of the href attribute of a region.

The href attribute specifies the target link of a region.

Syntax

areaObject.href=

URL


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the href property.


Example

Example

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

Runoob Tutorial(runoob.com) Venus

Href attribute value of Venus:

The example above produces the following output:

Href attribute value of Venus: http://www.runoob.com/try/demo_source/venus.htm

Try it »


Area Object Reference Area Object