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