HTML DOM Progress Object
တိုးတက်မှု အရာဝတ္ထု
Progress object သည် HTML <progress> element ကို ကိုယ်စားပြုသည်။
<progress> ဒြပ်စင်သည် အလုပ်တစ်ခု၏ တိုးတက်မှုကို ကိုယ်စားပြုသည်။
တိုးတက်မှုအရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <progress> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myProgress");
Progress Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <progress> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("PROGRESS");
Progress Object Properties
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 |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Progress object သည် စံ ဂုဏ်သတ္တိများ နှင့် အဖြစ်အပျက်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်းချက်- HTML <progress> တဂ်