HTML DOM Area object
The Area object
The Area object represents an area of the image map (image mapping refers to an image with a clickable area)
Each time a label appears in an HTML document, an Area object is created.
The Area object property
W3C: W3C standard:
Attributes | describe | W3C |
---|---|---|
alt | Set or return to the replacement text when the browser cannot display a region. | Yes |
coords | Set or return the coordinates of the clicked area in the image mapping. | Yes |
hash | Set or return an anchor portion of the URL in an area. | Yes |
host | Set or return to the host name and port of the URL in an area. | Yes |
hostname | Set or return the href attribute to the host part. | Yes |
href | Set or return the href attribute value in an area | Yes |
noHref | Set or return the NOHREF attribute value of a zone. | Yes |
pathname | Set or return the path name part of a zone HREF attribute value. | Yes |
port | Set or returns the port portion of a certain area HREF attribute value. | Yes |
protocol | Set or returns the protocol part of an area HREF attribute value. | Yes |
search | Set or return a query string portion of a zone HREF attribute value. | Yes |
shape | Set or return a region shape property value. | Yes |
target | Set or return an area Target property value. | Yes |
Standard properties and events
Area objects also support standard properties and events .