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

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 - 15 hours
essay editing service reviews
<a href=https://buy-eessay-online.com>help writing college essays</a>
recommended essay writing service
ChelsaeEtPi - 49 hours
order cheap essay online
<a href=https://buyacademicessay.com>what is a good essay writing service</a>
do my essay cheap
NaniceEtPi - 3 days

Powered by Linode.