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

coursework on a resume
<a href=https://brainycoursework.com>coursework writing service</a>
differential equations coursework
InessaEtPi - 8 months
who can help me write an essay
<a href=https://buytopessays.com>what is a good essay writing service</a>
essay writing service usa
PennyEtPi - 10 months
essay editing service reviews
<a href=https://buy-eessay-online.com>help writing college essays</a>
recommended essay writing service
ChelsaeEtPi - 10 months

Powered by Linode.