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

HTML DOM Area noHref Property

Area noHref Property

Area Object Reference Area Object


Definition and Usage

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

The nohref attribute specifies that a region has no related link.

Tip: The nohref attribute notifies the browser that the hyperlink attribute does not exist. You can also simply omit the href attribute to set that there is no related link.

Syntax

areaObject.noHref=true|false


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers except IE support the noHref property.


Example

Example

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

width="145" height="126"

usemap="#planetmap">

coords="124,58,8"

alt="Venus"

href="venus.htm"

nohref="nohref">

Value of nohref attribute for the "Venus" area is:

The example above produces the following output:

Value of nohref attribute for the "Venus" area is: true

Try it »


Area Object Reference Area Object