كائن HTML DOM Meta
كائن ميتا
يمثل كائن Meta عنصر HTML <meta>.
الوصول إلى كائن التعريف
يمكنك الوصول إلى عنصر <meta> باستخدام getElementsByTagName ():
var x = document.getElementsByTagName("META")[0];
قم بإنشاء كائن Meta
يمكنك إنشاء عنصر <meta> باستخدام طريقة document.createElement ():
مثال
var x = document.createElement("META");
خصائص كائن التعريف
Property | Description |
---|---|
content | Sets or returns the value of the content attribute of a meta element |
httpEquiv | Sets or returns an HTTP header for the information in the content attribute |
name | Sets or returns a name for the information in the content attribute |
scheme | Not supported in HTML5. Sets or returns how the value of the content attribute should be interpreted |
الخصائص القياسية والأحداث
يدعم كائن Meta أيضًا الخصائص والأحداث القياسية .
الصفحات ذات الصلة
مرجع HTML: علامة HTML <meta>