HTML DOM Menü Nesnesi
Menü Nesnesi
Menu nesnesi bir HTML <menu> öğesini temsil eder.
Not: <menu> öğesi şu anda büyük tarayıcıların hiçbirinde DESTEKLENMEMEKTEDİR.
Bir Menü Nesnesine Erişme
Bir <menu> öğesine getElementById() kullanarak erişebilirsiniz:
var x = document.getElementById("myMenu");
Menü Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <menu> öğesi oluşturabilirsiniz:
var x = document.createElement("MENU");
Menü Nesnesi Özellikleri
Property | Description |
---|---|
label | Sets or returns the value of the label attribute of the menu |
type | Sets or returns the value of the type attribute of the menu |
Standart Özellikler ve Etkinlikler
Menu nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML referansı: HTML <menu> etiketi