HTML DOM Area Object
ဧရိယာအရာဝတ္ထု
Area object သည် HTML <area> element ကို ကိုယ်စားပြုသည်။
ဧရိယာအရာဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <area> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည်။
ဥပမာ
var x = document.getElementById("myArea");
Area Object တစ်ခုကို ဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <area> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("AREA");
Area Object Properties များ
Property | Description |
---|---|
alt | Sets or returns the value of the alt attribute of an area |
coords | Sets or returns the value of the coords attribute of an area |
hash | Sets or returns the anchor part of the href attribute value |
host | Sets or returns the hostname and port part of the href attribute value |
hostname | Sets or returns the hostname part of the href attribute value |
href | Sets or returns the value of the href attribute of an area |
noHref | Not supported in HTML5. Sets or returns the value of the nohref attribute of an area |
origin | Returns the protocol, hostname and port part of the href attribute value |
password | Sets or returns the password part of the href attribute value |
pathname | Sets or returns the pathname part of the href attribute value |
port | Sets or returns the port part of the href attribute value |
protocol | Sets or returns the protocol part of the href attribute value |
search | Sets or returns the querystring part of the href attribute value |
shape | Sets or returns the value of the shape attribute of an area |
target | Sets or returns the value of the target attribute of an area |
username | Sets or returns the username part of the href attribute value |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
ဧရိယာအရာဝတ္ထုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <area> တဂ်