HTML DOM - kaartvoorwerp
Kaartvoorwerp
Die Kaart-objek verteenwoordig 'n HTML <map>-element.
Toegang tot 'n kaartvoorwerp
Jy kan toegang tot 'n <map>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myMap");
Skep 'n kaartvoorwerp
Jy kan 'n <map> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("MAP");
Kaartvoorwerpversamelings
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 |
Kaartvoorwerpeienskappe
Property | Description |
---|---|
name | Sets or returns the value of the name attribute of an image-map |
Standaard eiendomme en geleenthede
Die kaartvoorwerp ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML DOM verwysing: Area voorwerp
HTML verwysing: HTML <map> tag
HTML verwysing: HTML <area> tag