HTML DOM AreaObject


Area Object

The Area object represents an area of an image map (an image map refers to an image with clickable areas).

Each time the <area> tag appears in an HTML document, an Area object is created.


Area Object Properties

W3C:W3C Standard:

Property Description W3C
alt Sets or returns the alternate text for an area when the browser cannot display it. Yes
coords Sets or returns the coordinates of the clickable area in an image map. Yes
hash Sets or returns the anchor portion of the URL in an area. Yes
host Sets or returns the hostname and port of the URL in an area. Yes
hostname Sets or returns the host portion of the href attribute value. Yes
href Sets or returns the href attribute value in an area. Yes
noHref Sets or returns the nohref attribute value of an area. Yes
pathname Sets or returns the pathname portion of the href attribute value for an area. Yes
port Sets or returns the port portion of the href attribute value for an area. Yes
protocol Sets or returns the protocol portion of the href attribute value for an area. Yes
search Sets or returns the query string portion of the href attribute value for an area. Yes
shape Sets or returns the shape attribute value of an area. Yes
target Sets or returns the target attribute value of an area. Yes

Standard Properties and Events

Area objects also support standardpropertiesandevents.

Other Extensions