HTML DOM Map Object
Map Object
The Map object represents the HTML <map> element.
Access Map Object
You can access the <map> element using getElementById():
var x = document.getElementById("myMap");
Create Map Object
You can create a <map> element using the document.createElement() method:
var x = document.createElement("MAP");
Map Object Collection
Collection | Description |
---|---|
areas | Returns the collection of all <area> elements within the image-map. |
images | Returns the collection of all <img> and <object> elements associated with the image-map. |
Map Object Properties
Properties | Description |
---|---|
name | Sets or returns the value of the name attribute of the image-map. |
Standard Properties and Events
Map Object Supports StandardsPropertiesAndEvents.