Metaobjeto HTML DOM
Metaobjeto
El objeto Meta representa un elemento HTML <meta>.
Acceder a un metaobjeto
Puede acceder a un elemento <meta> usando getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Crear un metaobjeto
Puede crear un elemento <meta> utilizando el método document.createElement():
Ejemplo
var x = document.createElement("META");
Propiedades de metaobjetos
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 |
Propiedades y eventos estándar
El objeto Meta también es compatible con las propiedades y eventos estándar .
páginas relacionadas
Referencia HTML: etiqueta HTML <meta>