HTML DOM Map Object






<!--
main_leaderboard, all: [728,90][970,90][320,50][468,60]
-->



HTML DOM Map Object



❮ Previous
Next ❯



Map Object


The Map object represents an HTML <map> element.


Access a Map Object


You can access a <map> element by using getElementById():



Example



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

Try it Yourself »

Create a Map Object


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



Example



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

Try it Yourself »

Map Object Collections















Collection Description
areas Returns a collection of all <area> elements in an 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 value of the name attribute of an image-map

Standard Properties and Events


The Map object also supports the standard properties and events.




Related Pages


HTML DOM reference: Area object


HTML reference: HTML <map> tag


HTML reference: HTML <area> tag





❮ Previous
Next ❯

Popular posts from this blog

Python Lists

Aion

JavaScript Array Iteration Methods