Skip to content

Show a message to IE6 users

Found this tip over on The Admin Zone.  It’s a quick bit of HTML that will show a message to visitors using IE6.

<!--&#91;if IE 6&#93;>
<div style="background:#C00;color:white;font:16px arial;padding:6px 12px;display:block!important;" mce_style="background: #C00; color: white; font: 16px arial; padding: 6px 12px; display: block!important;"><strong>&#91;INSERT YOUR SITE&#93; no longer supports Internet Explorer 6.</strong>

We strongly recommend you upgrade your browser for additional functionality and better Internet experience.
Please upgrade your browser via the <a href="http://www.microsoft.com/windows/Internet-explorer/default.aspx" mce_href="http://www.microsoft.com/windows/Internet-explorer/default.aspx" style="color:white;" mce_style="color: white;">Microsoft Website</a>

Download the latest version of <a href="http://www.mozilla.com/firefox/" mce_href="http://www.mozilla.com/firefox/" style="color:white;" mce_style="color: white;">Firefox</a>
or <a href="http://www.google.com/chrome" mce_href="http://www.google.com/chrome" style="color:white;" mce_style="color: white;">Google Chrome.</a></div>
< !&#91;endif&#93;-->

It looks like the following, although I took out the conditional tags so everyone can see it. Feel free to change the message if you want to be a little less tactful.

[INSERT YOUR SITE] no longer supports Internet Explorer 6.

We strongly recommend you upgrade your browser for additional functionality and better Internet experience.
Please upgrade your browser via the Microsoft Website

Download the latest version of Firefox
or Google Chrome.

Published inComputers & Internet

One Comment

  1. thanks for the code. i was using ie6 warning (js). which will not come unless we ‘allow blocked content’. but this is good. thanks again.
    there is problem in the ending ” but the space after ‘<' makes problem.i changed to '’

Leave a Reply

Your email address will not be published. Required fields are marked *