2008
How to detect IE
Push the Internet Explorer users to switch to Firefox.
You can check the evolution of browser stats here.
Less IE please
Webmasters are tired of supporting Internet Explorer 6 or 7. (Personally I do not use any hack for accommodating the shortcomings of IE6 or IE7.)
Therefore you could stop the support of IE6 in your CSS files. Also do your users a favour and give them an alternative.
Not more Google please
 Chrome lighter reignites a browser war
There is another problem coming: Google is locking down competition on the Web. There are privacy concerns: collecting user data and monitoring your browsing. There also are anti-trust concerns.
The means to Web domination include owning the dominant search engine and controlling most of the web browsers. This in turn is done by promoting their own browser (Chrome) and by contracting with Mozilla: by default the Firefox search box triggers the Google engine. So please give the Mozilla foundation the means to stop their contract with Google. You can do that by promoting the use of Firefox -- rather than that of Chrome.
HTML snippet
You can add HTML to any web page. This snippet is less flexible than the PHP script further down. A proposal to switch shows only to users of older IE versions:
What the script does
I have created a PHP script that pushes users to switch to a relevant browser. It works as follows:
A user triggers her browser to ask for your page (across the Web).
The page served is different depending on the user agent. A message only shows on the web page only if the client uses a "bad" browser. The piece of code detects the browser used and displays an upgrade message only if the browser version is bad.
The message can be anything. By default it proposes to switch to Firefox. You can choose what you consider bad by editing the $announcement between the simple quotes on line 15 below.
Code for detecting IE
Die Internet Explorer!
Implementing this is fairly straightforward. If you have a blog here is a Wordpress plugin that works in a similar — but different — manner.
If you do not have a Wordpress blog, please use my PHP code herebelow. You can insert it into most HTML files.
You may reuse and propagate this script with either one of two licenses:
This alternative allows the use of the "Die IE!" code in a variety of software projects, while still maintaining copyleft on the said code. So choose the license and adapt the code to your needs. Usage: launch an editor, open your HTML or PHP file, copy and paste the above script, change the French detection (on line 11) to your own language (if not English).
|