HTML DOM Body Object
ခန္ဓာကိုယ်ဝထ္ထု
Body object သည် HTML <body> element ကို ကိုယ်စားပြုသည်။
ကိုယ်ထည်အရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementsByTagName() ကို အသုံးပြု၍ <body> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementsByTagName("BODY")[0];
အကြံပြုချက်- document.body ပိုင်ဆိုင်မှု ကို အသုံးပြုခြင်းဖြင့် <body> ဒြပ်စင်ကိုလည်း သင်ဝင်ရောက်နိုင်သည် ။
Body Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <body> ဒြပ်စင်တစ်ခုကို ဖန်တီးနိုင်သည်-
var x = document.createElement("BODY");
Body Object ၏ ဂုဏ်သတ္တိများ
Property | Description |
---|---|
aLink | Not supported in HTML5. See CSS :active Selector instead.
Sets or returns the color of an active link in a document |
background | Not supported in HTML5. Use style.backgroundImage instead. Sets or returns the background image for a document |
bgColor | Not supported in HTML5. Use style.backgroundColor instead. Sets or returns the background color of a document |
link | Not supported in HTML5. See CSS :link Selector instead. Sets or returns the color of unvisited links in a document |
text | Not supported in HTML5. Use style.color instead. Sets or returns the color of the text in a document |
vLink | Not supported in HTML5. See CSS :visited Selector instead.
Sets or returns the color of visited links in a document |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Body object သည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <body> တဂ်