HTML DOM ရင်းမြစ် Object
အရင်းအမြစ်အရာဝတ္ထု
အရင်းအမြစ်အရာဝတ္ထုသည် HTML <source> ဒြပ်စင်ကိုကိုယ်စားပြုသည်။
အရင်းအမြစ်အရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <source> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("mySource");
အရင်းအမြစ်အရာဝတ္ထုတစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <source> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("SOURCE");
ရင်းမြစ် Object Properties
Property | Description |
---|---|
media | Sets or returns the value of the media attribute in a <source> element |
src | Sets or returns the value of the src attribute in a <source> element |
type | Sets or returns the value of the type attribute in a <source> element |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
အရင်းအမြစ်အရာဝတ္ထုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML သင်ခန်းစာ- HTML5 ဗီဒီယို
HTML သင်ခန်းစာ- HTML5 အသံ
HTML ရည်ညွှန်း- HTML <source> တဂ်