cmlawson
asked on
How to detect IE6 & display a special message
I need a little javascript that will detect for IE6 and then let me display a message telling them to upgrade their browser. It would be ideal to just direct them to a special page where I could explain the whole thing.
I need code I can drop into my page. If possible, this seems like a pretty good script:
http://www.quirksmode.org/js/detect.html
I need code I can drop into my page. If possible, this seems like a pretty good script:
http://www.quirksmode.org/js/detect.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<<To do browser detects correctly, you just change the code in the background per the browser, and <<not proselytize.
This is a nice approach...I mean it is not very wise to tell the user, upgrade it...I mean if i were a guest of such site, i would feel as if i were belittled...so, i would leave the site...Adapt your code to different browsers, so that the guests won't have problems...
Best regards...
This is a nice approach...I mean it is not very wise to tell the user, upgrade it...I mean if i were a guest of such site, i would feel as if i were belittled...so, i would leave the site...Adapt your code to different browsers, so that the guests won't have problems...
Best regards...
ASKER
scrathcyboy - don't be a douche. this is not a forum. it's a place for solutions. you wanna discuss stuff like this head on over to sitepoint or digitalforums....
As funny as the comments are above, in reality, you are living in a DREAM world. If you worked for a corporation at $80K+ per year, and they said YOU WILL USE IE6 and nothing else, or you will WALK, then I bet you wouldn't walk. THAT is the reality of corporate choices today. Companies for the most part do not trust anything but IE6 right now, and you damn-well WILL use it or else. I think 80% of companies still require their employees to use IE6, or IE7 if they are "enlightened".
So save the prejudice about IE6 worse than Firefox (which I agree with, BTW) for yourself. The choice of a user's browser is UP TO THE USER -- just like your choice of a ("running") mate. To do browser detects correctly, you just change the code in the background per the browser, and not proselytize.