Note: This documentation is preliminary and is subject to change.
Retrieves the document compatibility mode.
Syntax
[ vMode = ] document.documentMode
Possible Values
vMode | Floating-point that receives one of the following values.5 | Quirks mode. | 7 | Strict mode. | 8 | Internet 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
See Also
compatible, isCompatible