zpjuth / ie6-upgrade-warning

Automatically exported from code.google.com/p/ie6-upgrade-warning
0 stars 0 forks source link

Check for IE7 #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I want to use this script for checking if IE7 is installed or lower.

I use:
<!--[if lte IE 7]><script src="js/ie6/warning_<%=lg%
>.js"></script><script>window.onload=function(){e("js/ie6/")}</script>
<![endif]-->

but on my system with IE8.0.6001.18882 it also gives me the popup warning 
window !?

Anyone experiencing the same problem ?

Original issue reported on code.google.com by hideki.t...@gmail.com on 4 Mar 2010 at 1:47

GoogleCodeExporter commented 9 years ago
I've done the same as this, but for some reason in IE 8 the warning message is 
now
displayed at the back of all my content - but in IE6 and 7 its shown at the 
front!

Original comment by des...@jonathanbranthwaite.co.uk on 22 Mar 2010 at 9:51

GoogleCodeExporter commented 9 years ago
I think I've solved this:

Adding:

<meta http-equiv="X-UA-Compatible" content="IE=8" />

Will force IE8 to render his site in IE8 mode, and cause JavaScript and 
Conditional
Comments to report IE8. Seems to have worked on my site and stopped the Upgrade
message from appearing in IE8

Original comment by des...@jonathanbranthwaite.co.uk on 22 Mar 2010 at 11:03

GoogleCodeExporter commented 9 years ago
Where do you add that line of code?

Thanks!

Original comment by bimallak...@gmail.com on 6 Mar 2012 at 3:08