Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I show a message to IE6/IE7 browsers to upgrade to IE8 and have IE8 not show the IE7 warning?

Tags:

I want to only allow users with IE8 (not IE6, IE7) or another browser to access my site when logged in.

I followed: http://code.google.com/p/ie6-upgrade-warning/ But I also wanted it to not allow IE7 users to use the main site when logged in (they can view public pages.) The reason is that the main web application has a lot of JavaScript effects that will only work 100% in IE8 rendering mode (or any other browser aside from IE.)

The problem with modifying the ie6 upgrade warning to be ie7 is that it looked like IE8 displayed my webpage in an IE7 rendering mode and "lies" about being ie7 and triggers the IE7 stylesheet code.

So how can I force IE8 to always render my page in IE8 mode?

like image 523
MikeN Avatar asked May 04 '09 22:05

MikeN


People also ask

What is IE6 and IE8?

IE6 (in non-quirks mode): You write CSS for the IE6 limitations (hacks upon hacks) and sleep poorly. IE8 (in IE8/non-quirks mode): You write CSS which is [generally] compatible with other modern browsers and have happier dreams :p~

What is IE6 and IE7?

The only 1 important difference is: IE6 is nothing but a huge pain for web-designers. IE6 must die! You have no idea how much a pain it is to design a website which works perfectly under Firefox and IE7,8 then find out it's totally broken under IE6, because IE6 is too dumb to compile the code....

Does Internet Explorer 8 still work?

On April 9, 2019, Microsoft released the final IE8 update for Windows Embedded POSReady 2009, the last supported version of Windows based on Windows XP, marking the end of IE8 support on all platforms.

Should I support IE8?

So what should you do? Even if a relevant number of your users still use legacy IE browsers, do not support them. If your site breaks in IE10, IE9 or IE8, let it break and force users to look for safer alternatives.


1 Answers

Use this tag:

<meta http-equiv="X-UA-Compatible" content="IE=8" /> 
like image 149
Daniel Kivatinos Avatar answered Sep 18 '22 18:09

Daniel Kivatinos