Latest web development tutorials

HTML DOM Map Object

Map Object

Map object represents an HTML <map> element.

Object Access Map

You can use getElementById () to access the <map> element:

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

Create Map Objects

You can create a <map> element using document.createElement () method:

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

Map collection of objects

set description
areas The set of all <area> element returns an image map
images Back to all related with the image maps <img> and <object> element collection

Map familiar objects

Attributes description
name Sets or returns the name attribute value of the image map

Standard properties and events

Map object also supports the standard attributes and events .


Related Pages

HTML DOM Reference Manual: Area Objects

HTML Reference Manual: HTML <Map> tag

HTML Reference Manual: HTML <Area> tag