HTML DOM Output Object
Output Object
Output object သည် HTML <output> element ကို ကိုယ်စားပြုသည်။
မှတ်ချက်- <output> ဒြပ်စင်ကို Internet Explorer / Edge တွင် မပံ့ပိုးပါ။
Output Object တစ်ခုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <output> ဒြပ်စင်တစ်ခုအား သင်ဝင်ရောက်နိုင်သည်။
ဥပမာ
var x = document.getElementById("myOutput");
အကြံပြုချက်- ဖောင် တစ်ခု၏ဒြပ်စင် များစုစည်းမှု မှတစ်ဆင့် ရှာဖွေခြင်းဖြင့် <output> ဒြပ်စင်တစ်ခုကိုလည်း ဝင်ရောက်ကြည့်ရှု နိုင်ပါသည်။
Output Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <output> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("OUTPUT");
Output Object Properties
Property | Description |
---|---|
defaultValue | Sets or returns the default value of an <output> element |
form | Returns a reference to the form that contains the <output> element |
htmlFor | Returns the value of the for attribute of an <output> element |
labels | Returns a list of <label> elements associated with the <output> element |
name | Sets or returns the value of the name attribute of an <output> element |
type | Returns which type of HTML element the Output object represents |
value | Sets or returns the value of an <output> element |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Output object သည် စံ ဂုဏ်သတ္တိများ နှင့် အဖြစ်အပျက်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <output> တဂ်