Easy Tutorial
❮ Jsref Replaceall Prop Style Width ❯

HTML DOM Map Object


Map Object

The Map object represents the HTML <map> element.

Accessing the Map Object

You can access the <map> element using the getElementById() method:

Creating a Map Object

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

Map Object Collections

Collection Description
areas Returns a collection of all <area> elements in the image map
images Returns a collection of all <img> and <object> elements associated with the image map

Map Object Properties

Property Description
name Sets or returns the name attribute value of the image map

Standard Attributes and Events

The Map object also supports standard attributes and events.


Related Pages

HTML DOM Reference: Area Object

HTML Reference: HTML <map> Tag

HTML Reference: HTML <area> Tag

❮ Jsref Replaceall Prop Style Width ❯