كائن HTML DOM المضمن
كائن التضمين
يمثل الكائن Embed عنصر HTML <embed>.
قم بالوصول إلى كائن Embed
يمكنك الوصول إلى عنصر <embed> باستخدام getElementById ():
مثال
var x = document.getElementById("myEmbed");
قم بإنشاء كائن Embed
يمكنك إنشاء عنصر <embed> باستخدام طريقة 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 <embed>