HTML DOM प्रोग्रेस ऑब्जेक्ट
प्रगति वस्तु
प्रोग्रेस ऑब्जेक्ट एक HTML <प्रगति> तत्व का प्रतिनिधित्व करता है।
<प्रगति> तत्व किसी कार्य की प्रगति का प्रतिनिधित्व करता है।
एक प्रगति वस्तु तक पहुँचें
आप getElementById() का उपयोग करके <प्रगति> तत्व तक पहुंच सकते हैं:
उदाहरण
var x = document.getElementById("myProgress");
एक प्रगति वस्तु बनाएँ
आप document.createElement() विधि का उपयोग करके एक <प्रगति> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("PROGRESS");
प्रगति वस्तु गुण
Property | Description |
---|---|
labels | Returns a list of the progress bar's labels (if any) |
max | Sets or returns the value of the max attribute of a progress bar |
position | Returns the current position of the progress bar |
value | Sets or returns the value of the value attribute of a progress bar |
मानक गुण और घटनाएँ
प्रोग्रेस ऑब्जेक्ट मानक गुणों और घटनाओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML संदर्भ: HTML <प्रगति> टैग