HTML DOM IFrame Object
IFrame အရာဝတ္ထု
IFrame အရာဝတ္ထုသည် HTML <iframe> ဒြပ်စင်ကို ကိုယ်စားပြုသည်။
IFrame Object ကို ဝင်သုံးပါ။
getElementById() ကို အသုံးပြု၍ <iframe> ဒြပ်စင်တစ်ခုကို သင်ဝင်ရောက်နိုင်သည် ။
ဥပမာ
var x = document.getElementById("myFrame");
အကြံပြုချက်- window.frames ပိုင်ဆိုင်မှု ကို အသုံးပြုခြင်းဖြင့် သင်သည် <iframe> ဒြပ်စင်တစ်ခုကိုလည်း ဝင်ရောက်ကြည့်ရှု နိုင်ပါသည်။
IFrame အရာဝတ္ထုတစ်ခုဖန်တီးပါ။
document.createElement() နည်းလမ်းကို အသုံးပြု၍ <iframe> ဒြပ်စင်တစ်ခုကို ဖန်တီးနိုင်သည်-
ဥပမာ
var x = document.createElement("IFRAME");
IFrame Object Properties
Property | Description |
---|---|
align | Not supported in HTML5. Use style.cssFloat instead. Sets or returns the value of the align attribute in an iframe |
contentDocument | Returns the document object generated by an iframe |
contentWindow | Returns the window object generated by an iframe |
frameBorder | Not supported in HTML5. Use
style.border instead. Sets or returns the value of the frameborder attribute in an iframe |
height | Sets or returns the value of the height attribute in an iframe |
longDesc | Not supported in HTML5. Sets or returns the value of the longdesc attribute in an iframe |
marginHeight | Not supported in HTML5. Use style.margin instead. Sets or returns the value of the marginheight attribute in an iframe |
marginWidth | Not supported in HTML5. Use style.margin instead. Sets or returns the value of the marginwidth attribute in an iframe |
name | Sets or returns the value of the name attribute in an iframe |
sandbox | Returns the value of the sandbox attribute in an iframe |
scrolling | Not supported in HTML5. Sets or returns the value of the scrolling attribute in an iframe |
seamless | Sets or returns whether an iframe should look like it is a part of the containing document (no borders or scrollbars), or not |
src | Sets or returns the value of the src attribute in an iframe |
srcdoc | Sets or returns the value of the srcdoc attribute in an iframe |
width | Sets or returns the value of the width attribute in an iframe |
စံသတ်မှတ်ချက်များနှင့် အစီအစဉ်များ
IFrame အရာဝတ္ထုသည် စံ ဂုဏ်သတ္တိများ နှင့် ဖြစ်ရပ်များ ကို ပံ့ပိုး ပေးပါသည်။
ဆက်စပ်စာမျက်နှာများ
HTML ရည်ညွှန်း- HTML <iframe> တဂ်