Metaobjeto HTML DOM
Metaobjeto
O objeto Meta representa um elemento HTML <meta>.
Acessar um Meta Objeto
Você pode acessar um elemento <meta> usando getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Criar um metaobjeto
Você pode criar um elemento <meta> usando o método document.createElement():
Exemplo
var x = document.createElement("META");
Propriedades do Metaobjeto
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 |
Propriedades e eventos padrão
O objeto Meta também suporta as propriedades e eventos padrão .
Páginas relacionadas
Referência HTML: tag HTML <meta>