Meta obiekt HTML DOM
Meta obiekt
Obiekt Meta reprezentuje element HTML <meta>.
Uzyskaj dostęp do metaobiektu
Możesz uzyskać dostęp do elementu <meta> za pomocą getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Utwórz meta obiekt
Możesz utworzyć element <meta> za pomocą metody document.createElement():
Przykład
var x = document.createElement("META");
Właściwości metaobiektu
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 |
Standardowe właściwości i zdarzenia
Obiekt Meta obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: HTML <meta> tag