Javascript Reference
Categories: SCRIPT

javascript SCRIPT charset

@March 15, 2008, 1:22 a.m.
charsetFirefox/Netscape/NN 6 IE 6(Win) Chrome/Safari/DOM 1  

Read/Write  

Indicates the character encoding of the script content.

 
Example
 
if (document.getElementById("myScript").charset == "csISO5427Cyrillic") {
    // process for Cyrillic charset
}
 
Value

Case-insensitive alias from the character set registry (ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets).

 
Default

Determined by browser.


Powered by Linode.