Click here to Skip to main content
15,887,410 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
No document mode is shown in IE 8. The OS used is Windows 8. Using VS(2005) and the document mode not shown. But in XP I am getting document mode as 8 with IIS 7.5

doing as follows:
XML
<meta http-equiv="X-UA-Compatible" content="Edge" />

<pre lang="xml">This document is displayed in IE
&lt;script&gt;
document.write(document.documentMode);
&lt;/script&gt;
mode

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; IE Only! The documentMode property is supported in IE8+.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; If no !DOCTYPE is specified, IE8 renders the page in IE5 mode!&lt;/p&gt;</pre>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900