Javascript Reference
Categories: document

javascript document compatMode

@July 28, 2009, 9:10 a.m.
compatMode Firefox/Netscape/NN 7 IE 6 Chrome/Safari/DOM n/a

 

Read-only

Returns the compatibility mode for the document, as controlled by the DOCTYPE element's content. See the DOCTYPE element discussion for details on how to force the browser to treat a document in either backward compatibility or standards compatibility mode for element positioning and other implementation details. Because the choice of mode can impact some style property results, you can use this property to branch between two calculations in a shared library so that they treat the current document correctly, regardless of mode.

 
Example
 
if (document.compatMode == "BackCompat") {
    // process as if IE 5.5 or earlier or Netscape "quirks" mode
}
 
Value

String constant: BackCompat | CSS1Compat.

 
Default

BackCompat

cheap lipitor 40mg <a href="https://lipiws.top/">cost atorvastatin 20mg</a> purchase lipitor online cheap
Amrmvl - 10 months
Hello,

Club-Music download https://0daymusic.org MP3, FLAC, LIVESETS, Music Videos.

Team 0day
AnthonyNed - 11 months
coursework on a resume
<a href=https://brainycoursework.com>coursework writing service</a>
differential equations coursework
InessaEtPi - 2 years

Powered by Linode.