ComputerWorld is reporting that starting on March 1, 2010, Google Docs and Google Sites will no longer support Internet Explorer 6. Considering that IE6 is 9 years old, it’s not surprising. There have been two versions of Internet Explorer in the past 9 years, alongside offerings from Mozilla, Apple, and even Google themselves. Corporations have NO excuses for not updating their applications and services to support the later versions of Internet Explorer (or the alternative browsers).
If you are a web-developer, I strongly urge you to drop support for Internet Explorer 6 in your sites. Redirect the visitor to a page that says something to the effect of "The browser that you are currently using is old, outdated, and insecure. Here are some links to the latest browsers which are supported on this site." In fact, I would suggest following Google’s lead and dropping support for Firefox 2.x, Apple 2.x, Google 3.x, or earlier browsers.
Here are some links for coding the version detection into your websites.
http://www.mozilla.org/docs/web-developer/sniffer/browser_type_oo.html This page is geared mainly for older browsers to show the page in an optimized format. You can easily modify the code to redirect the user to another page that recommends they upgrade. (instead of (ie5up), you could use (! ie7up)).
http://www.quirksmode.org/js/detect.html The code in this site parses the browser’s information for the version number. You can modify their example inside of the "You are using…." box to create your redirection (if browser < IE7, Firefox 3, Chrome 4, then redirect here.). This script does not detect Safari–due to how Apple formats their browser identification string, but you could probably add it in fairly easily (you just need to know the internal version number of Safari 4 which is any number greater than 528.18. It’s 530.17 on Mac, 530.17 on Windows (4.0.1) but 528.18 on their iPhone, so I would just use the lower value because there are no "versions" on the Mac or Windows that contains that number (source http://en.wikipedia.org/wiki/Safari_version_history )).
Personally, I prefer the second route to the first one. I may include it in my blog at some point (redirecting people to this post or another page). However on the first page, they actually discuss the >= or in your case < (use gte for >= and lt for < in your if statements).
Have a great day and if you’re using one of these older browsers, then you may want to switch things up. http://www.microsoft.com/windows/internet-explorer/default.aspx http://www.getfirefox.com or http://www.apple.com/safari