HTML DOM Map Object

Map Object

The Map object speaks to a HTML <map> element.

Access a Map Object

You can get to a <map> component by utilizing getElementById():

var x = document.getElementById("myMap");

Create a Map Object

You can make a <map> component by utilizing the document.createElement() method:

var x = document.createElement("MAP");

Map Object Collections

Collection Description
areas Returns an accumulation of all <area> components in a picture map
images Returns a gathering of all <img> and <object> components related with the picture map

Map Object Properties

Property Description
name Sets or returns the estimation of the name characteristic of a picture map