Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
HTML and CSS
Properties
 documentMode Property
documentMode Property
New for Windows Internet Explorer 8

Retrieves the document compatibility mode of the document.

Syntax

[ vMode = ] object.documentMode

Possible Values

vModeFloating-point that receives one of the following values.
5
Microsoft Internet Explorer 5 mode (also known as "quirks mode").
7
Internet Explorer 7 Standards mode.
8
Internet Explorer 8 Standards mode.

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

Remarks

This property is available in all compatibility modes.

The document compatibility mode of a Web page determines how Internet Explorer 8 interprets and renders the page. Page authors generally use meta elements to specify X-UA-Compatible HTTP-EQUIV headers that specify the document compatibility mode. For more information, see Defining Document Compatibility. In versions of Internet Explorer previous to Internet Explorer 8, compatMode was solely determined by DOCTYPE.

Standards Information

There is no public standard that applies to this property.

Applies To

document, HTMLDocument Constructor

See Also

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker