Easy Tutorial
❮ Prop Style Bordertopwidth Prop Element Clienttop ❯

HTML DOM inputEncoding Property

Document Object

Example

Display the character encoding of the current document:

Output result:


Definition and Usage

The inputEncoding property returns the encoding of the document (as parsed).

It returns null if the document is created in memory.


Browser Support

All major browsers support the inputEncoding property except Opera.

Note: Internet Explorer 8 and earlier versions do not support this property.


Syntax

Technical Details

Return Value: String, returns the document encoding
DOM Version Core Level 3 Document Object
--- ---
❮ Prop Style Bordertopwidth Prop Element Clienttop ❯