Click to Rate and Give Feedback
Properties
 documentMode Property
documentMode Property
New for Windows Internet Explorer 8
Note: This documentation is preliminary and is subject to change.

Retrieves the document compatibility mode.

Syntax

[ vMode = ] document.documentMode

Possible Values

vModeFloating-point that receives one of the following values.
5Quirks mode.
7Strict mode.
8Internet Explorer 8 in standards mode.

The property is read-only. The property has no default value.

Remarks

This property is available in all compatibility modes.

In Internet Explorer 8 and later, the compatibility mode of the document is determined wholly by the X-UA-Compatible meta tag. In previous versions of Internet Explorer, compatMode was determined by DOCTYPE.

Standards Information

There is no public standard that applies to this property.

Applies To

document

See Also

compatible, isCompatible
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker