function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
$Abhi$$Abhi$ 

Turn off compatibility mode in IE9 programatically

Hi,

I have a requirement, under which I want to turn off the compatibility mode of IE9, so that when my visualforce page loads, the page displays in IE9 with compatibility mode off.

I investigated on achieving the task, and found that the following tag could be used inside the HTML header to turn off the compatibility mode

 

TAG :<head><meta http-equiv="X-UA-Compatible" content="IE=edge"/></head>

 

But the problem is,

1)The tag is added to the header only if the 'showHeader' for the VF page is false

2)Even after adding the tag to the HTML header, by turning the 'showHeader' property of the page to 'true' the compatibility mode is not turned off for IE9

 

Any pointers on this issue would be of great help.