-4

When my application runs in Internet Explorer, is needed that it choose IE8 version and run on it. Is there any javascript function that added in my jsp page, it selects IE8 version and run on it.

As in my machine I have IE9, but my default IE7 is the mode it is running. I can manually choose IE8 or IE9 to run on that particular version, but instead I want to write some piece of javascript code that allow any users, when run this application in IE, by default it runs in IE8.

participantjava
  • 195
  • 1
  • 2
  • 16

1 Answers1

4

Try putting a custom meta tag in your head

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8,chrome=1" />

This forces emulation of IE8

EDIT On every page unless you are using a filter of some kind

From your jsp filter:

((HttpServletResponse) servletResponse).setHeader("X-UA-Compatible", "IE=EmulateIE7,chrome=1");
Josef E.
  • 2,179
  • 4
  • 15
  • 30