एचटीएमएल डोम मीटर वस्तु
मीटर वस्तु
मीटर ऑब्जेक्ट एक HTML <मीटर> तत्व का प्रतिनिधित्व करता है।
नोट: <मीटर> तत्व Internet Explorer / Edge या Safari 5 (और पुराने संस्करणों) में समर्थित नहीं है।
मीटर ऑब्जेक्ट तक पहुंचें
आप getElementById() का उपयोग करके <meter> तत्व तक पहुंच सकते हैं:
उदाहरण
var x = document.getElementById("myMeter");
मीटर ऑब्जेक्ट बनाएं
आप document.createElement() विधि का उपयोग करके <meter> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("METER");
मीटर वस्तु गुण
Property | Description |
---|---|
high | Sets or returns the value of the high attribute in a gauge |
labels | Returns a list of <label> elements that are labels for the gauge |
low | Sets or returns the value of the low attribute in a gauge |
max | Sets or returns the value of the max attribute in a gauge |
min | Sets or returns the value of the min attribute in a gauge |
optimum | Sets or returns the value of the optimum attribute in a gauge |
value | Sets or returns the value of the value attribute in a gauge |
मानक गुण और घटनाएँ
मीटर ऑब्जेक्ट मानक गुणों और घटनाओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML संदर्भ: HTML <मीटर> टैग