Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Map Object

HTML DOM Map Object


Map object

The Map object represents an HTML .

Accessing the Map Object

You can use getElementById() to access an element. element:

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

Try it

Creating the Map Object

You can create one by using the document.createElement() method element:

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 and elements of the image map collection

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 tag

HTML Reference Manual: HTML tag