I usually do this in http headers, so the browser knows this before seeing html. This ensures that it is in the correct mode.
In IIS, in the web.config file:
<httpProtocol> <customHeaders> <clear /> <add name="X-UA-Compatible" value="IE=edge" /> </customHeaders> </httpProtocol>
on apache, I don't know. But googling X-UA-compliant IE = Edge should help.
you can do IE = IE9 to fix a specific version.
I do not know that, to be honest, this redefines group policy. But it worked in any scenario that I had to force IE to a specific version, including inside the corporate network on localhost.
source share