TOC PREV NEXT INDEX

domref



characterSet


Returns the character set of the current document.

Syntax

charSet = document.characterSet
 

Parameters

charSet is a string.

Example

<input 
 
   value="char" 
 
   type="button"    onclick="alert(document.characterSet);" />
 
// returns "ISO-8859-1"
 

Notes

For a complete list of character sets, see:
http://www.iana.org/assignments/character-sets.

Specification

DOM Level "0". Not part of specification.


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX