Метаобъект HTML DOM
Мета-объект
Объект Meta представляет HTML-элемент <meta>.
Доступ к метаобъекту
Вы можете получить доступ к элементу <meta> с помощью getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Создать метаобъект
Вы можете создать элемент <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>