characterSet
Summary
Gets the preferred MIME name of the document’s character encoding.
Property of dom/Documentdom/Document
Syntax
Note: This property is read-only.
var result = element.characterSet;
Examples
//displays the document's character encoding string
function showCharSet() {
alert(document.characterSet);
}
Syntax
Standards information
- HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 3.1.3
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]