This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

areas

Summary

Returns an HTMLCollection of area elements included within the element.

Property of dom/HTMLMapElementdom/HTMLMapElement

Syntax

Note: This property is read-only.

var areaElements = mapElement.areas;

Return Value

Returns an object of type ObjectObject

An HTMLCollection of area elements.

Notes

Areas can be added to or removed from the collection. If duplicate identifiers are found, a collection of those items is returned. Collections of duplicates must be referenced subsequently by ordinal position. To add elements to the collection, use the createElement and add methods. Alternatively, use the insertAdjacentHTML method.

Related specifications

DOM Level 2 HTML
Recommendation

Attributions