compatMode
Indicates whether the document is rendered in Quirks mode or Strict mode.
Syntax
mode = document.compatMode
Parameters
mode is a string containing "BackCompat" for Quirks mode or "CSS1Compat" for Strict mode.
Example
if ( document.compatMode == "BackCompat" ){ // use some quirky stuff }Notes
Netscape Communications http://developer.netscape.com |