JavaScript Reference/Javascript Properties/charset
Версия от 21:30, 25 мая 2010; (обсуждение)
"charset" Example
<source lang="javascript">
<html> <body> <button onclick="alert(document.charset);">Character Encoding for Document</button> </body> </html>
</source>
"charset" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<a> document | | |<link> | | |<meta> <script> | +----------------+--------------------------------------------------------------+
</source>
"charset" Syntax and Note
<source lang="javascript">
Note: Read and write property. Sets the the element character set.
Syntax:
document.getElementById("elementID").charset = value document.all.elementID.charset = value // IE only
</source>