HTML DOM Li Nesnesi
Li nesnesi
Li nesnesi bir HTML <li> öğesini temsil eder.
Bir Li Nesnesine Erişin
Bir <li> öğesine getElementById() kullanarak erişebilirsiniz:
Örnek
var x = document.getElementById("myLi");
Bir Li Nesnesi Oluşturun
Document.createElement() yöntemini kullanarak bir <li> öğesi oluşturabilirsiniz:
Örnek
var x = document.createElement("LI");
Li Nesne Özellikleri
Property | Description |
---|---|
value | Sets or returns the value of the value attribute of a list item |
Standart Özellikler ve Etkinlikler
Li nesnesi ayrıca standart özellikleri ve olayları da destekler .
İlgili Sayfalar
HTML referansı: HTML <li> etiketi