HTML DOM Meta Object
Meta objekt
Objekt Meta představuje HTML prvek <meta>.
Přístup k meta objektu
K prvku <meta> můžete přistupovat pomocí getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Vytvořte meta objekt
Element <meta> můžete vytvořit pomocí metody document.createElement():
Příklad
var x = document.createElement("META");
Vlastnosti meta objektu
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 |
Standardní vlastnosti a události
Objekt Meta také podporuje standardní vlastnosti a události .
Související stránky
HTML reference: HTML značka <meta>