HTML DOM- meta- object
Meta-object
Het Meta-object vertegenwoordigt een HTML <meta>-element.
Toegang tot een meta-object
U kunt toegang krijgen tot een <meta>-element met getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Een meta-object maken
U kunt een <meta>-element maken door de methode document.createElement() te gebruiken:
Voorbeeld
var x = document.createElement("META");
Eigenschappen van meta-object
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 |
Standaard eigenschappen en evenementen
Het Meta-object ondersteunt ook de standaard eigenschappen en gebeurtenissen .
Gerelateerde pagina's
HTML-referentie: HTML <meta>-tag