Document.defaultCharset (Property)

The default character set of the document.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyDocument.defaultCharset

This would contain the character set being used by the document when it was first opened. That may have changed but this value should always be the same as it was at the start. 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.


See also:Document object, Document.charset