TOC PREV NEXT INDEX

domref



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

None.


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