HTML DOM Harita Nesnesi
Harita Nesnesi
Map nesnesi bir HTML <map> öğesini temsil eder.
Bir Harita Nesnesine Erişin
Bir <map> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("myMap");
Bir Harita Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <map> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("MAP");
Harita Nesne Koleksiyonları
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 |
Harita Nesnesi Özellikleri
Property | Description |
---|---|
name | Sets or returns the value of the name attribute of an image-map |
Standart Özellikler ve Olaylar
Map nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML DOM referansı: Alan nesnesi
HTML referansı: HTML <map> etiketi
HTML referansı: HTML <area> etiketi