Meta oggetto HTML DOM
Meta oggetto
L'oggetto Meta rappresenta un elemento HTML <meta>.
Accedi a un meta oggetto
Puoi accedere a un elemento <meta> usando getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Crea un meta oggetto
Puoi creare un elemento <meta> usando il metodo document.createElement():
Esempio
var x = document.createElement("META");
Proprietà del meta oggetto
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 |
Proprietà ed eventi standard
L'oggetto Meta supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <meta>