0
<!--[if IE 7]>
  <script type="text/javascript">
    window.location = "BrowserErrorPage.php";
  </script>
<![endif]-->

I have managed to find out if its IE7 then redirect to somepage. what if i want something like i want to redirect to error page if the IE browser version is below IE version 8.

  • dup: http://stackoverflow.com/questions/3541982/apply-css-rules-if-browser-is-ie and: http://stackoverflow.com/questions/567561/how-do-i-do-ie-conditionals-in-css – jchapa Feb 27 '13 at 20:44

2 Answers2

2
<!--[if lt IE 8]>
  <script type="text/javascript">
    window.location = "BrowserErrorPage.php";
  </script>
<![endif]-->

For further information: Conditional comments

Chris
  • 4,255
  • 7
  • 42
  • 83
0
<!--[if lt IE 8]>
  <script type="text/javascript">
    window.location = "BrowserErrorPage.php";
  </script>
<![endif]-->

Conditional comments are a terrible idea but here is how it would work.

marteljn
  • 6,446
  • 3
  • 30
  • 43