Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

documentMode property

Retrieves the document compatibility mode of the document.

Internet Explorer 8

 

Syntax

JavaScript

p = object.documentMode

 

Property values

Type: Variant

Variant of type Floating-point that receives one of the following values.

5

Internet Explorer 5 mode (also known as "quirks mode").

7

Internet Explorer 7 Standards mode.

8

Internet Explorer 8 Standards mode.

9

Internet Explorer 9 Standards mode.

10

Internet Explorer 10 Standards mode.

Remarks

When the current document has not yet been determined, documentMode returns a value of zero (0). This usually happens when a document is loading. When a return value of zero is received, try to determine the document compatibility mode at a later time.

This property is available in all compatibility modes.

The document compatibility mode of a document determines how Internet Explorer 8 interprets and renders the document. Document 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 Windows Internet Explorer previous to Internet Explorer 8, compatMode was solely determined by doctype.

See also

document
Reference
compatible
Conceptual
Defining Document Compatibility

 

 

Show:
© 2014 Microsoft