HTML DOM Track Object
အရာဝတ္ထုကို ခြေရာခံပါ။
Track object သည် HTML <track> element ကို ကိုယ်စားပြုသည်။
ခြေရာခံအရာဝတ္ထုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <track> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည်။
var x = document.getElementById("myTrack");
Track Object တစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <track> element တစ်ခုကို ဖန်တီးနိုင်သည်-
var x = document.createElement("TRACK");
Object Properties ကို ခြေရာခံပါ။
Property | Description |
---|---|
default | Sets or returns the default state of the track |
kind | Sets or returns the value of the kind attribute of the track |
label | Sets or returns the value of the label attribute of the track |
readyState | Returns the current state of the track resource |
src | Sets or returns the value of the src attribute of the track |
srclang | Sets or returns the value of the srclang attribute of the track |
track | Returns a TextTrack object representing the track element's text track data |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Track object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <track> တဂ်