Display the character encoding for this document:
The result of x will be:
The inputEncoding property returns the character encoding for the document.
The inputEncoding property returns the character encoding at the time of parsing, and will return null if the document is created in memory.
Note: This property is read-only.
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
inputEncoding | Yes | 9.0 | Yes | Yes | 15.0 |
Return Value: | A String, representing the document's character encoding |
---|---|
DOM Version | Core Level 3 Document Object |