S
S
sanex33392015-08-13 18:29:29
JavaScript
sanex3339, 2015-08-13 18:29:29

Is it possible to disable compatibility mode in ie9 using js?

Essence: there is a js code that is embedded on the page.
If in ie9 this page does not specify the `html` doctype or meta tag

<meta http-equiv="x-ua-compatible" content="IE=Edge"/>
, then the page will run in compatibility mode, i.e. in ie8 mode, which will cause the code to become inoperable.
Is it possible to somehow forcefully disable compatibility mode through js code? Tried appending the meta tag
<meta http-equiv="x-ua-compatible" content="IE=Edge"/>
- did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Shatokhin, 2015-08-14
@sanex3339

You can set the HTTP header "X-UA-Compatible"...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question