HTML DOM Menu Object
Menu Object
Menu object သည် HTML <menu> element ကို ကိုယ်စားပြုသည်။
မှတ်ချက်- <menu> ဒြပ်စင်အား လက်ရှိတွင် အဓိက ဘရောက်ဆာများတွင် ပံ့ပိုးမထားပါ။
မီနူးအရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <menu> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည်။
var x = document.getElementById("myMenu");
Menu Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <menu> element တစ်ခုကို ဖန်တီးနိုင်သည်-
var x = document.createElement("MENU");
Menu Object Properties
Property | Description |
---|---|
label | Sets or returns the value of the label attribute of the menu |
type | Sets or returns the value of the type attribute of the menu |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
မီနူးအရာဝတ္တုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <menu> တဂ်