एचटीएमएल डोम उल ऑब्जेक्ट
उल वस्तु
उल ऑब्जेक्ट एक HTML <ul> तत्व का प्रतिनिधित्व करता है।
उल ऑब्जेक्ट एक्सेस करें
आप getElementById() का उपयोग करके <ul> तत्व तक पहुंच सकते हैं:
उदाहरण
var x = document.getElementById("myUL");
एक उल वस्तु बनाएँ
आप document.createElement() विधि का उपयोग करके एक <ul> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("UL");
उल वस्तु गुण
Property | Description |
---|---|
compact | Not supported in HTML5. Use
style.lineHeight instead. Sets or returns whether the unordered list should render smaller than normal, or not |
type | Not supported in HTML5. Use
style.listStyleType instead. Sets or returns the value of the type attribute of an unordered list |
मानक गुण और घटनाएँ
उल ऑब्जेक्ट मानक गुणों और घटनाओं का समर्थन करता है ।
संबंधित पृष्ठ
HTML ट्यूटोरियल: HTML सूचियाँ
HTML संदर्भ: HTML <ul> टैग