HTML DOM စာရွက်စာတမ်း မြှုပ်နှံထားသည်။
ဥပမာ
စာရွက်စာတမ်းတစ်ခုရှိ <embed> ဒြပ်စင်အရေအတွက်-
let num = document.embeds.length;
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
embeds
ပိုင်ဆိုင်မှုသည် စာရွက်စာတမ်းရှိ <embed> ဒြပ်စင်များအားလုံးကို စုစည်းမှုကို ပြန်ပေးသည် ။
embeds
ပိုင်ဆိုင်မှုသည် ဖတ်ရန်သာဖြစ်သည် ။
သတိပေးချက်
ဘရောက်ဆာအများစုသည် မြှုပ်သွင်းထားသော Applets သို့မဟုတ် Plug-in များကို ပံ့ပိုးပေးတော့မည် မဟုတ်ပါ။
Embedded ActiveX ထိန်းချုပ်မှုများကို မည်သည့်ဘရောက်ဆာများတွင် ပံ့ပိုးပေးတော့မည် မဟုတ်ပါ။
Shockwave Flash ကို ခေတ်မီဘရောက်ဆာများတွင်လည်း ပိတ်ထားသည်။
အကြံပြုချက်များ
ပုံတစ်ပုံကို မြှုပ်နှံရန် <img>
tag ကိုသုံးပါ။
HTML ကို ထည့်သွင်းရန် <iframe>
tag ကို အသုံးပြုပါ။
ဗီဒီယို သို့မဟုတ် အသံကို မြှုပ်နှံရန်၊ <video>
သို့မဟုတ် <audio>
တဂ်ကို အသုံးပြုပါ။
ကိုလည်းကြည့်ပါ-
အထားအသို
document.embeds
သတ္တိ
Property | Description |
length | The number of <embed> elements in the collection. |
နည်းလမ်းများ
Method | Description |
[index] | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
item(index) | Returns the element with the specified index (starts at 0). Returns null if the index is out of range. |
namedItem(id) | Returns the element with the specified id. Returns null if the id does not exist. |
တန်ဖိုးကို ပြန်ပေးသည်။
ရိုက်ပါ။ | ဖော်ပြချက် |
Node စာရင်း | HTML စုစည်းမှု ။ စာရွက်စာတမ်းရှိ <embed> အစိတ်အပိုင်းများအားလုံး။ အရင်းအမြစ်ကုဒ်တွင် ပေါ်လာသည်နှင့်အမျှ ၎င်းတို့ကို စီထားသည်။ |
Browser ပံ့ပိုးမှု
document.embeds
DOM Level 3 (2004) အင်္ဂါရပ်တစ်ခုဖြစ်သည်။
ဘရောက်ဆာအားလုံးတွင် ၎င်းကို အပြည့်အဝထောက်ခံသည်-
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | 9-11 | Yes | Yes | Yes | Yes |