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



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.

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

String constant: BackCompat | CSS1Compat.



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

Powered by Linode.