Obiekt mapy HTML DOM
Mapa obiektu
Obiekt Map reprezentuje element HTML <map>.
Uzyskaj dostęp do obiektu mapy
Możesz uzyskać dostęp do elementu <map> za pomocą getElementById():
Przykład
var x = document.getElementById("myMap");
Utwórz obiekt mapy
Możesz utworzyć element <map> za pomocą metody document.createElement():
Przykład
var x = document.createElement("MAP");
Kolekcje obiektów mapy
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 |
Mapuj właściwości obiektu
Property | Description |
---|---|
name | Sets or returns the value of the name attribute of an image-map |
Standardowe właściwości i zdarzenia
Obiekt Map obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML DOM: Obiekt obszaru
Odniesienie HTML: tag HTML <map>
Odniesienie HTML: tag HTML <area>