HTML DOM Meta Object
Meta-voorwerp
Die Meta-objek verteenwoordig 'n HTML <meta>-element.
Toegang tot 'n meta-objek
Jy kan toegang tot 'n <meta>-element kry deur getElementsByTagName():
var x = document.getElementsByTagName("META")[0];
Skep 'n Meta Object
Jy kan 'n <meta> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("META");
Meta-objek eienskappe
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 eiendomme en geleenthede
Die Meta-objek ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML verwysing: HTML <meta> tag