HTML DOM Link Object
အရာဝတ္ထုကို ချိတ်ဆက်ပါ။
Link object သည် HTML <link> element ကို ကိုယ်စားပြုသည်။
လင့်ခ်ဝတ္တုကို ဝင်ရောက်ကြည့်ရှုပါ။
getElementById() ကို အသုံးပြု၍ <link> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myLink");
Link Object တစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <link> element တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("LINK");
Object Properties ကို ချိတ်ဆက်ပါ။
Property | Description |
---|---|
charset | Not supported in HTML5. Sets or returns the character encoding of the linked document |
crossOrigin | Sets or returns the the CORS settings of the linked document |
disabled | Sets or returns whether the linked document is disabled, or not |
href | Sets or returns the URL of the linked document |
hreflang | Sets or returns the language code of the linked document |
media | Sets or returns the media type for the link element |
rel | Sets or returns the relationship between the current document and the linked document |
rev | Not supported in HTML5. Sets or returns the reverse relationship from the linked document to the current document |
sizes | Returns the value of the sizes attribute of the linked resource |
type | Sets or returns the content type of the linked document |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
Link object သည် စံ ဂုဏ်သတ္တိများ နှင့် အဖြစ်အပျက်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <link> တဂ်