Oggetto mappa HTML DOM
Oggetto mappa
L'oggetto Map rappresenta un elemento HTML <map>.
Accedi a un oggetto mappa
Puoi accedere a un elemento <map> usando getElementById():
Esempio
var x = document.getElementById("myMap");
Crea un oggetto mappa
Puoi creare un elemento <map> usando il metodo document.createElement():
Esempio
var x = document.createElement("MAP");
Raccolte di oggetti mappa
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 |
Mappa delle proprietà dell'oggetto
Property | Description |
---|---|
name | Sets or returns the value of the name attribute of an image-map |
Proprietà ed eventi standard
L'oggetto Mappa supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML DOM: oggetto Area
Riferimento HTML: tag HTML <mappa>
Riferimento HTML: tag HTML <area>