HTML DOM Document characterSet attribute
- Previous Page charset
- Next Page close()
- Go to the Previous Level HTML DOM Documents
Definition and usage
characterSet
The property returns the document character encoding.
See also:
HTML Character Set Reference Manual
Deprecated alias:
Syntax
document.characterSet
Return value
Type | Description |
---|---|
String | Document character encoding. |
Browser support
document.characterSet
It is a feature of DOM Level 3 (2004). It is a feature of DOM Level 3 (2004).
All browsers fully support it:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Support | 9-11 | Support | Support | Support | Support |
- Previous Page charset
- Next Page close()
- Go to the Previous Level HTML DOM Documents