HTML DOM एंबेड ऑब्जेक्ट
वस्तु एम्बेड करें
एम्बेड ऑब्जेक्ट एक HTML <एम्बेड> तत्व का प्रतिनिधित्व करता है।
एक एम्बेड वस्तु तक पहुँचें
आप getElementById() का उपयोग करके <एम्बेड> तत्व तक पहुंच सकते हैं:
उदाहरण
var x = document.getElementById("myEmbed");
एक एम्बेड वस्तु बनाएँ
आप document.createElement() विधि का उपयोग करके एक <एम्बेड> तत्व बना सकते हैं:
उदाहरण
var x = document.createElement("EMBED");
वस्तु गुण एम्बेड करें
Property | Description |
---|---|
height | Sets or returns the value of the height attribute in an embed element |
src | Sets or returns the value of the src attribute in an embed element |
type | Sets or returns the value of the type attribute in an embed element |
width | Sets or returns the value of the width attribute in an embed element |
मानक गुण और घटनाएँ
एम्बेड ऑब्जेक्ट मानक गुणों और घटनाओं का भी समर्थन करता है ।
संबंधित पृष्ठ
HTML ट्यूटोरियल: HTML प्लग-इन
HTML संदर्भ: HTML <एम्बेड> टैग