HTML DOM Map Object
Map object
The Map object represents an HTML
Accessing the Map Object
You can use getElementById() to access an element.
var x = document.getElementById("myMap");
Try it
Creating the Map Object
You can create one by using the document.createElement() method
var x = document.createElement("MAP");
Try it
Map Object Collections
| Union | Description |
|---|---|
| areas | Returns all elements of the image map collection |
| images | Returns all related to the image map |
Map Object Properties
| property | Description |
|---|---|
| name | Sets or returns the value of the name attribute of the image map |
Standard properties and events
The Map object also supports the standard property and Events.
Related pages
HTML DOM Reference Manual: Area Object
HTML Reference Manual: HTML
HTML Reference Manual: HTML tag