JavaScript Reference/Javascript Properties/defaultCharset
"defaultCharset" Example
<html>
<body>
<button onclick="alert(document.defaultCharset);">Default Charset</button>
</body>
</html>
"defaultCharset" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document |
+----------------+--------------------------------------------------------------+
"defaultCharset" Syntax and Note
Note:
Read-only property.
Returns the character set used by the browser.
Syntax:
document.defaultCharset