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

HTML DOM Area hash Property

Area hash Property

Area Object Reference Area Object


Definition and Usage

The hash property can set or return the anchor part of the href attribute value.

Syntax

areaObject.hash=

anchorname


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the hash property.


Example

Example

The following example returns the anchor part of the href attribute in the "Venus" region:

Runoob Tutorial(runoob.com) Venus

Anchor of Venus's href attribute:

The example above produces the following output:

Anchor of Venus's href attribute: #description

Try it »


Area Object Reference Area Object