map | NN 6 IE 4 DOM 1
The map object reflects the map element.
HTML Equivalent
    <map>
Object Model Reference
    [window.]document.getElementById("elementID")
Object-Specific Properties

areasSQAREBRACKET | name

Object-Specific Methods
None.
Object-Specific Event Handler Properties
None.

areas[ ] | NN 6 IE 4 DOM 1
| Read-only
Indicates a collection of all area element objects nested inside the map element.
Example
    for (var i = 0; i < document.getElementById("myMap").areas.length; i++) {
        oneMap = document.getElementById("myMap").areas[i];
        ...
    }
Value
Array of area element objects.
Default
Array of length zero.

name | NN 6 IE 4 DOM 1
| Read/Write
This is the identifier associated with the client-side image map specification. A map element contains all the area elements that define the hotspots of an image and their link destinations. The name assigned to the map element is the one cited by the usemap attribute of the img element. This binds the map definitions to the image.
Example
    document.getElementById("myMap").name = "altMap";
Value
Case-sensitive string identifier that follows the rules of identifier naming: it may contain no whitespace, cannot begin with a numeral, and should avoid punctuation except for the underscore character.
Default
None.