Easy Tutorial
❮ Jsref Number Nan Prop Style Transitionduration ❯

HTML DOM documentMode Property


Definition and Usage

The documentMode property returns the mode in which the browser renders the document.

IE8 renders pages differently based on the !DOCTYPE or certain existing HTML elements.

These elements return the following values:

Note: If no !DOCTYPE is specified, IE8 renders the page in IE5 mode.

Syntax


Browser Support

The documentMode property is specific to IE browsers and is supported in IE8 and later versions.


Example

Return the mode used by the browser to render the page:


❮ Jsref Number Nan Prop Style Transitionduration ❯