Click here to Skip to main content
15,891,513 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB.NET
How to forcefully run the browser IE 11 in IE11 Compatiblity Mode?


I know to add the website to compatibility mode manually. But I want it to do code wise.

I tried in web.config as below
XML
<system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=EmulateIE11" />
      </customHeaders>
    </httpProtocol>
</system.webServer>

But the site is not getting added to the compatibility mode. On clicking F12 the document mode is shown simply as Edge(default) and not IE 11 Compatiblity Mode
Posted
Updated 25-Nov-15 2:39am
v4
Comments
Suvendu Shekhar Giri 25-Nov-15 8:48am    
Is there any in IE 11 Compaitibility mode in IE11?

1 solution

There is no difference between "IE11 mode" and "edge mode". The latest version of the developer tools only offer IE11 mode.

Starting with IE11, edge mode is considered the preferred document mode. (In earlier versions, it was considered experimental.) To learn more, see Document modes are deprecated[^].
...
Starting with Internet Explorer 11, content values greater than "10" lead to edge mode, which is the highest version supported by the version of Internet Explorer used to view the webpage.

NB: In this case, "edge" doesn't refer to Microsoft Edge, the Windows 10 replacement for IE; it just means the latest document mode supported by the current version of IE.
 
Share this answer
 

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