JavaScript Reference/Javascript Properties/defaultCharset
Версия от 18:30, 25 мая 2010; (обсуждение)
"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