X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML DOM inputEncoding Property

Document Object Reference Document Object

Example

Display the character encoding for this document:

var x = document.inputEncoding;

The result of x will be:

ISO-8859-1

Try it yourself »


Definition and Usage

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.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
inputEncoding Yes 9.0 Yes Yes 15.0


Syntax

document.inputEncoding

Technical Details

Return Value: A String, representing the document's character encoding
DOM Version Core Level 3 Document Object


Document Object Reference Document Object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook