Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force the Browser Mode and Document Mode of IE 9 to IE 9

I need to force both the browser mode and document mode of my IE 9 to IE 9. Now, I've set "X-UA-Compatible" to "IE=9" in the tag of my header, but it has no effect when I change the document mode to either IE 7 / IE 8.

Force the Browser Mode and Document Mode of IE 9 to IE 9

My site is to be compatible only with IE 9 and not with any other versions of IE. Furthermore, I looked through and studied most questions answered here and through blogs (msdn) but nothing seems to be working for me (Before the moderators close this as a duplicate question). Can any one of you guide me about the same ?

like image 312
verisimilitude Avatar asked Apr 24 '12 14:04

verisimilitude


People also ask

How do I change my document mode to Internet Explorer 9?

Change the Document Mode to Internet Explorer 9 Standards and try to view the content again. To change the Document Mode, press F12, click Document Mode: , and then select Internet Explorer 9 Standards."

How do I change the document mode in ie11 permanently registry?

Open the registry editor using regedit.exe and follow the below mentioned paths to find the configuration in registry. Delete the REG_DWORD value iexplore.exe. Now close the browser and relaunch the website using Internet Explorer 11, it will default to Edge as Document Mode. Highly active question.


1 Answers

IF you have set up the (X-UA..") tags already then that should force it into the appropriate Document Mode and Browser Mode.

It looks like you're setting the document mode in the IE dev tools console, this overrides it whatever you put in as tags.

This diagram explains how IE determines what modes to display in and the dev toolbar takes priority.

Edit/Update

Unfortunately it seems the above link got taken down. For now here is an alternative

like image 164
Chris Avatar answered Oct 14 '22 19:10

Chris