SCRIPT.charset (Property)

The character set that a script conforms to.

Availability:

DOM level - 1
JavaScript - 1.5
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:NmySCRIPT.charset

This would contain the character set being used by the script file referred to by the SRC="..." HTML tag attribute. For example the value "iso-8859-1" is likely to be returned but the local variant of the browser and OS may affect the value you get.

This property might contain a value such as:

csISO5427Cyrillic

Details of other aliases can be located at the IANA registry (see web reference below).

Warnings:

Web-references:

ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets