areas | NN 6 IE 4 DOM 1 | |||
A collection of all area elements associated with a map element. Notice that individual items of an areas collection are also members of the document-wide links collection (document.linksSQAREBRACKET array). But the members of an areas collection are local to a single map element. |
||||
Object Model Reference | ||||
document.getElementById("mapElementID").areas |
||||
Object-Specific Properties | ||||
|
||||
Object-Specific Methods | ||||
|
length | NN 6 IE 4 DOM 1 |
Read-only | |
Returns the number of elements in the collection. |
|
Example | |
var howMany = document.areas.length; |
|
Value | |
Integer. |
item( ) | NN 6 IE 4 DOM 1 |
item(index[, subindex]) item(index) | |
Returns a single area object or collection of area objects corresponding to the element matching the index value (or, optionally in IE, the index and subindex values). |
|
Parameters | |
|
|
Returned Value | |
One area object or collection (array) of area objects. If there are no matches to the parameters, the returned value is null. |
namedItem( ) | NN 6 IE 6 DOM 1 |
namedItem(IDOrName) | |
Returns a single area object or collection of area objects corresponding to the element matching the parameter string value. |
|
Parameters | |
|
|
Returned Value | |
One area object or collection (array) of area objects. If there are no matches to the parameters, the returned value is null. |
urns( ) | NN n/a IE 5(Win) DOM n/a |
urns(URN) | |
See the all.urns( ) method. |