BrianHawkinsTech

  • Increase font size
  • Default font size
  • Decrease font size
Home Development Warn users if they are using IE6

Warn users if they are using IE6

E-mail Print PDF
User Rating: / 0
PoorBest 

Many web developers are beginning to shun support for IE6.  Here is a simple and reasonably nice way to warn any visitors still using IE6 that they need to upgrade.  If you are still using static HTML files, you can put this code at the very beginning of your HTML file, before the HTML tag. If you are building an ASP.NET site, you can place this code at the top of your MasterPage file.  I put it after any "<&@ Master" .... and "<&@ Register..." tags and before the "<!DOCTYPE..." and "<HTML..." tags.  This will cause the warning message to appear at the top of the page for any visitors using IE6.  Other browsers will ignore the code.   You could certainly modify the CSS to tailor the warning appearance to your liking.

IE6_CodeSnippet

This code sample and usage is adapted from a post by Scott Hanselman.

 

Add comment


Security code
Refresh

Recommended Web Hosting

hawkinstech150x150ad

Advertiser Links


Free Stuff!

Visit my Advertisers



LinkShare  Referral  Program

Newsflash

This site has been migrated to the new and improved HawkinsTech Hosting platform.  As part of this migration I have decided to upgrade and redesign the site.  I hope you found the new BrianHawkins Tech site to be more usable and helpful!