Give IE6 users the message to upgrade or change


This is a modified version based off of Finn.no’s code to give Internet Explorer 6 (IE6) users the message to upgrade. I’ve translated it to english, changed the styling and added browser-options. Feel free to use and modify this as you please. Source: The original code and a message from Erlend Schei at FINN Labs (Norwegian)
Note: Wordpress automatically makes changes to the text when I hit save/publish/update so you’ll have to go to this page for the right source-code (thanks to @behe for the updated source with IE8. I’m sorry about the faults in the previous code I published. Wordpress insisted on converting my characters.

This code will look like this:

Did you know that your browser is out of date?

To get the best possible experience using our website we recommend that you upgrade your browser to a newer version. The current version is Internet Explorer 8. The upgrade is free. If you’re using a PC at work you should contact your IT administrator.

If you want to you may also try some other popular Internet browsers like Firefox, Opera, or Safari

Be sure to digg this article to spread the word outside of Norway. There’s also a Wiki made to keep track of the progress of spreading the IE6 message.

Del og nyt:
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • StumbleUpon
  • Technorati
  • LinkedIn
  • Twitter

, , , ,

  1. #1 by Fredrik Rødland on 19/02/2009 - 16:04

    The script does not work as it is (at least not when viewed in Firefox on a mac)

    The comment-tags should be:

    instead of
    and

  2. #2 by Duncan Macdonald on 19/02/2009 - 16:07

    YES!! Quite right my good man, I’m really hoping more designers and developers start taking a pro-active approach in discouraging IE6 use .

    :-)

  3. #3 by Vincent Hasselgård on 19/02/2009 - 17:10

    @ Fredrik Rødland
    But that’s the whole point of it. If you mean the example that’s not hidden by a conditional comment I’m a bit puzzled, because I use Firefox on a Mac myself and it’s there.

  4. #4 by Sammy on 19/02/2009 - 17:51

    doesn’t work

  5. #5 by Erlend Oftedal on 19/02/2009 - 17:59

    I had to perform some small fixes to make it work. Here is a working version:
    http://erlend.oftedal.no/blog/ie6begone.txt

  6. #6 by Norbert on 19/02/2009 - 18:02

    Browser experience? Sounds like, “this programmer is too lazy” ;)

    I would say it clearer: “Welcome with your oldtimer browser Internet Explorer 6. In view of the fact that it is 7 years old and has lots of security issues, we congratulate you that it is still alive and working! However, as with junk cars, we would like to recommend you upgrade to a newer browser like …
    … (list of browsers)”

  7. #7 by Chris on 19/02/2009 - 18:10

    Great idea, Vincent!

    Noted that your example code has typographical quotes that will not work if you paste them directly in the website (or my browser did that) – anyhow I had to replace them by normal quotes.

    And Wordpress also changed the two minus signs in one dash.

  8. #8 by Sammy on 19/02/2009 - 18:18

    here is the corrected version:

    http://www.rgb-factory.de/ie6_sucks.htm

    works with:
    FF 3.0.6
    google chrome 1.0.154.48
    opera 9.63
    internet explorer 7 and 6
    Safari for windows 3.1.2

  9. #9 by Vincent Hasselgård on 19/02/2009 - 18:40

    Chris :

    Great idea, Vincent!

    Noted that your example code has typographical quotes that will not work if you paste them directly in the website (or my browser did that) – anyhow I had to replace them by normal quotes.

    And Wordpress also changed the two minus signs in one dash.

    Thanks, I’ve fixed it. I had to make a txt-file and upload it. Wordpress insists on converting the characters. I dunno if it’s the theme or the engine itself that does it.

  10. #10 by Vincent Hasselgård on 19/02/2009 - 18:41

    @ Sammy
    Thanks. I’ve fixed the post by linking to a text-file. Wordpress insisted on converting the characters.

  11. #11 by Vincent Hasselgård on 19/02/2009 - 18:42

    @Norbert
    That would be a great message to read, well, I wouldn’t get to read it, but it would be fun. Hehe.

  12. #12 by Sammy on 19/02/2009 - 18:45

    @ Vincent Hasselgård
    there are still a few little mistakes:
    you forgot to close the p tag at the end and you forgot to declare the a tags with the css classes.

    just copy http://www.rgb-factory.de/ie6_sucks.txt
    :-)

    greetings from germany

  13. #13 by Loci on 19/02/2009 - 18:55

    Alternatively you can add the following two lines to your .htaccess file. This will redirect all MSIE version 6 or older to the URL in the second line.

    RewriteCond %{HTTP_user_agent} MSIE\ [0-6]
    RewriteRule .*$ http\:\/\/www\.firefox\.com\/ [R]

    Greetings from Germany
    Loci

  14. #14 by Vincent Hasselgård on 19/02/2009 - 19:42

    @ Loci
    This is also a way to do it, but I think that may confuse some users and they might get angry or scared and just close it. I think it’s better to give them the message while still allowing the users to do what they wanted to do in the first place without forcing them to do an install of new software first. Some might open the links in a new window and download and then upgrade after they’re done doing what they wanted on the internet.

  15. #15 by Loci on 19/02/2009 - 20:17

    @ Vincent
    That’s the reason I didn’t redirect directly to firefox.com but a subdomain where I placed a small HTML file which explains why I redirected the request and a link to firefox.com

    I don’t know if it works with MSIE as I tested it with Konqueror: I loaded my site, changed the UserAgent to MSIE 5.5 and was (due to the immediate reload redirected to the intermediate page. Then I changed back and was redirected to the correct landing page.

    Your code snippet does a soft cut while mine does a hard cut. I think it’s dependent on what’s your site policy and what you’re wanting to achieve with the hint.

  16. #16 by Wojtek on 19/02/2009 - 20:18

    Hi there!

    I will Support this and here is my German Translation of the File.

    http://www.golfcabrio.de/tmp/der_alte_internet_explorer_muss_weichen.txt

    BR

  17. #17 by Vincent Hasselgård on 19/02/2009 - 20:55

  18. #18 by Chris on 19/02/2009 - 21:12

    @ Vincent Hasselgård
    Wordpress does this by itself. But the text file works fine. It seems you’re getting famous :-D

  19. #19 by Vincent Hasselgård on 19/02/2009 - 23:00

    @ Chris
    I didn’t really anticipate getting this much feedback, but it’s just great, it means that the world is ready to get rid of IE6 :D

  20. #20 by børge on 20/02/2009 - 04:31

    Great! I will use this very soon on my website. But one thing: It’s “Firefox”, not “FireFox”!

  21. #21 by børge on 20/02/2009 - 04:33

    And the URL for Firefox is http://www.mozilla.com/en-US/firefox/

  22. #22 by Vincent Hasselgård on 20/02/2009 - 08:20

    @ børge
    I left the /en-US/ out on purpose so people would get the browser in the language they have. There’s a great chance someone living in russia who prefer to have russian language on their programs will visit an english website and if they do click the Firefox download button they should automatically get the choice to download russian language software. That’s why I did it :)

  23. #23 by Oliver Schlöbe on 20/02/2009 - 10:29

    Participated. Way to go! :-)

  24. #24 by Vincent Hasselgård on 20/02/2009 - 13:05

    Thank you for your support :)

  25. #25 by Loci on 20/02/2009 - 14:29

    If you set the link to http://www.firefox.com you will be redirected to the Mozilla site with the correct language (depending on your preferred language setting in the browser).

  26. #26 by børge on 20/02/2009 - 15:59

    @ Vincent Hasselgård
    Ah, yes. I didn’t think of that..! :| Well, then you should do as @ Loci says. And the name…. :)

  27. #27 by Vincent Hasselgård on 20/02/2009 - 16:09

    @børge
    @Loci
    Thanks Loci, I’ll update it later tonight or tomorrow morning. Right now I’m leaving for Øyas afternoonparty at by:Larm :) Thanks for all the feedback :)

  28. #28 by Morten on 20/02/2009 - 20:38

    We need to take this further and completely BLOCK the websites to IE6 users. If enough websites wasn’t even browsable, it would force the users to pester their IT departments to upgrade, so they can get some actual work done.

  29. #29 by Vincent Hasselgård on 20/02/2009 - 23:30

    @ Morten
    That might be, but then again most large websites needs their users and don’t want to piss them off or make it harder for people than nessecary to use their site. One thing is to block IE6 users if their site won’t work on it, blocking users that could view your content in the setup they already have is a bad idea for commercial sites dependent on their visitors. They simply can’t risk driving their readers away. Of course, you’re more than welcome to block IE6-users from your own site(s) :)

  30. #30 by Loci on 20/02/2009 - 23:50

    @Morten: see my hint some comments above. I’ve implemented it on my site.
    I only have a small site and don’t bother having less users but on a really huge site with many users which are relevant making money or on governmental sites where blocking a user would set false signs this would be the wrong way. In this case the code snippet is much more helpful although I think there will not be enough sites to make the users realize IE6 and older are simple too old and full of security flaws.
    I had a time where I blocked IE-users completely, regardless of the version. But I can. ;-)

  31. #31 by Michael on 21/02/2009 - 03:45

    Thanks for kicking this off. I’ve done my humble site, using the NetRenderer to do the testing. I had no idea how bad IE 5.5 and 6 really are.

    That’s one for Japan!

  32. #32 by Vincent Hasselgård on 21/02/2009 - 03:57

    @ Michael
    Hooray! Go Japan! :) Thanks for supporting.

  33. #33 by CIAvash on 21/02/2009 - 15:05

    hi
    this is my persian/farsi translation with some changes:
    http://potatozone.com/blog/wp-content/uploads/2009/02/ie6-warning-fa.txt

  34. #34 by falaque on 23/02/2009 - 09:31

    hay,
    coooooooool.
    nice campaign. why people are using such an old age browser. this is stopping the development of web.

  35. #35 by Vincent Hasselgård on 23/02/2009 - 14:03

    @ CIAvash
    Thanks for your contribution :)

  36. #36 by Vincent Hasselgård on 23/02/2009 - 14:04

    @ falaque
    Thanks for the support :) Let’s hope this campaign will stop IE6 once and for all!

  37. #37 by delta on 23/02/2009 - 14:14

    Now if we can just get rid of IE altogether, the web would be a better place.

  38. #38 by Vincent Hasselgård on 23/02/2009 - 16:21

    @delta
    I agree with you on that, but unfortunately that’s just as likely as Microsoft developing a version of IE that’s standards-compliant. The only way I could see IE disapearing is if Microsoft is forced to bundle Windows with several browsers, giving users a choice when they first set up their computer or if Windows just stop developing IE, then people would eventually change browsers as Windows 8 or 9 or whatever gets out and is bundled with Opera, Safari, Firefox or Google Chrome. I actually see Opera for the most natural candidate when it comes to that, it’s already welldeveloped and they got a commercial corporation behind them. Google Chrome is in a way early stage and Google and Microsoft are competitors on other areas as well (search, mail ++). I guess I think Firefox is too community-based and doesn’t fit with Microsofts general policy.

  39. #39 by David Hund on 27/02/2009 - 13:10

    Great to see more people are trying to make a statement and help rid the world of this outdated and buggy browser.

    Besides making a statement though, I feel it is necessary to help _inform_ people on why IE6 is a bad browser and _help_ them upgrade. This is exactly what http://www.browserupgrade.info tries to do. Please help people upgrade by pointing them to browserupgrade.info or similar sites!

  40. #40 by Will Kemp on 28/02/2009 - 09:48


    I think the basic idea is good, but implementing it in CSS is a bad idea! What about accessibility? if you hide the “your browser is out of date” message using css, will people who use screen readers get it anyway? Maybe some of them will – which isn’t good. (And it will show up on text-only browsers, like lynx and elinks, as well of course.)

    I think it would be much better to not have the text there at all in a page that’s being displayed by any browser other than IE6.

    There are two ways of doing this – probably the best way is to use server-side scripting. It’s trivial with php – surrounding the text with the following tags should work:

    < ?php if ( stristr( $_SERVER['HTTP_USER_AGENT'] , “MSIE 6″ )) { ?>
    [the text goes in here]
    < ?php } ?>

    (i don’t know if that will have got through the filters in this comment system or not…)

    The other way to do it is with javascript – by removing the text from the DOM if the browser isn’t IE6. That’s relatively easy, too, but requires a little bit more code than doing it with php.

    Well, those tags got through the comment filter, but the quote marks got mutilated! That code won’t work. Change the quote marks round ‘MSIE 6′ to normal double (or single) quotes.

    Ooops! Sorry. I got the wrong end of the stick there! I just had a proper look at the code you’re suggesting (i only glanced at it previously, and misunderstood what i saw).

    Please delete my above comments.

  41. #41 by Peter Scholz on 12/03/2009 - 19:35

    thanks, to the start this initiative

  42. #42 by Micke Seid on 18/03/2009 - 11:13

    Here’s a version with updated links to all the downloads; http://korta.nu/bbb2

  43. #43 by behe on 01/04/2009 - 00:06

    And here’s a version pushing IE8, now it’s been released.
    http://twitter.com/behe/status/1425373790

  44. #45 by Hungarian guy on 09/04/2009 - 21:09

    Thank you very much for your work!
    Hungarian version: http://gesign.xi.hu/ie6-warning-hun.txt

  45. #46 by Jules on 18/08/2009 - 17:14

    I hope you don’t mind I sorta adapted the ‘lyrics’ on our site:
    http://settuno.com

    If you have a problem with it, please contact me.

  46. #47 by Vincent Hasselgård on 29/09/2009 - 00:42

    @ Jules
    No problem :) It’s meant to be used!

  47. #48 by Roman on 23/11/2009 - 15:39

    NO IE6 !!

  48. #49 by Thomahawk on 06/03/2010 - 07:25

    I just got a look in here – did not try your code yet. But I am surprised: How can your code probably work? You have no Javascript there, nothing but a bit of css and text. How doe this work?

  49. #50 by Vincent Hasselgård on 16/03/2010 - 21:53

    It works with conditional comments. IE6 is the only browser that will read the code between . Simple as that.

(will not be published)

kelty angled bite valve replacement valve aspen winds estes park eidos thief gold 8 ply chainsaw boot 66 st offical business parking smic.be 2553 montana st oakland 109 royal court jacksonville nc 2002 postage stamps cars ncl cruise price match empiricus ten modes discontinued woodard patio corinne hartley dance print spicyliveshows.com carrera 3.2 specifications 2007 hdd camcorder reviews dryer mounted on wall oster cw 44 cable 12 03 se-r spec v pictures animals of the niger river baby weight predictor wycosheriff.org 1500 watt hot air styling brushes casa 212 army parachute training australia jerome olivier orcsd.org armstrong cork company 400 watt grid tie inverter tablet replaces whiteboard maturehoes.com flirting different in front of husband american lighthouse photos clifton williams symphonic dance no 2 500 polaris sportsman winch mount clean cat urine matress 2008 dodge dakota laramie about insulation conneticut renaissance faire necdisplay.com cesar monterrey gold reserva tequila 202 little hearst parkway african american architect floor plan babes over forty average last frost kane county illinois black romantic love poems 2 categories of voltage regulation etax dor ga gov falls chruch virginia consulado rtugal rj 80 s sticker maker cinema brest imageconverterplus.com tawny kittan abel peak abel peek teenfatties.net animal welfare association paincontrolsolutions.com joe lieberman wikipedia the free encyclopedia star feature on telus cell phone 2008 escalade hybrid developmental pediatrician florida early centerline rwd wheels .410 lincoln jeffries jnr gunmaker bartholomew disciple of jesus cymbalta alcoholism amy acker filmography fraze pavilion kettering 2004 impreza wrx asia honky gmail 2008 1988 dump truck 2009 golden globe fashion css glastonbury foes of the sleepy moon rembrandt and portland art museum appliances stoves viking effects on newborns exposed to vicodin david dudley marlborough my own southpark character aleve headache sinus abrasive sleeve bug sweeper inexpensive cheap reliable 3 divers die uss speagle grove 2009 86 bray yacht account card credit merchant retail no dominoes case author elwood post ezra on zane harpers ferry io parameters for ventilator weaning eye lash curler applied control theory nonviolent crisis intervention all stainless steel steak knives farmingdale nightclubs margin debts 1990 astro van air cleaner sensor governor daniels socialist seroquel alternatives sveurop.org basement freezers for motorhomes allah ke bade tamron 28-200 lens australia all american fitness broken arrow ok now foods hyaluronic acid serum 2004 corvette commemorative pictures 1958 chambersburg high school year book asheville buncombe community christian mission 1953 storm surge reculver avec des m moires clarity tranquility solutions buy muse ed brian furman edmonton 3pt cement mixer lyrics cream ulysses sterling silver figaro chain 6 mm tradeaway.com sami ccoe ludacris biography bainbridge island diving diagnostic test of arithmetic strategies ceilings for stores java smackdown download habit breaker pager audience participation short plays benito sailboat 405nm diode laser 18 inch wall clock house of wax remake cook store stowe anne klein turnkey coat acys youth facts stats nautilus 140 water pump brian pearce stalin lenin lakewood elementary phenix city al 1 corinthians 13 8 free mpgs young filth chinese translations serenity movie making maps for visually impaired blind filipina schoolgirl car rental san luis obispo city kitchen grosse pointe 2007 oakland raider roster fairport convention babacombe lee dividing monomials worksheet face straddle fart danville cemetary in kilgore texas cheap night terror great wolf lodge and poconos lodgings in pocono mountains pa free models for poser amy sikes lubbock additive identity in 3-hour arithmetic alfred bridesmaid dress college visitation questions missyspics.com cert funding for ground source heating kristallnacht remembrance 1986 body building lafeyette palomino world series if life hands you lemons acute diffuse encephalomyelitis diffusion mri dinah washington blue gardenia blyth funeral home greenwood sc asplundh whisper chipper blade adjustment asya ahmad muhammad 1950 advertisements aomonline.org luzerne college 1978 prowler rv 310 window envelopes antonio salvador conde identical dna blood grouping britanica 144 pin pga package irishcountrymusic.com condensation of breath farmingdale historical acient k ingdoms near turkey levittown pa soccer cryptids monsters diamondback capital 15 x 19 unframed victorian prints alabama market bulletin an extremely goofy movie wikipedia american investor network azteca restaurante stretched hummer limos avn ablation after a pacemaker miragenethosting.com dean hartwell political gateway morningjewelry.com econo lift healer gem socket bingocomics.com art bell steven gibbs mp3 bacteria and bathing in tub axis clock harold lloyd a condensation collector agricultural warning light amp collections a z chi gong possesion derma soothe canal fulton yankee peddler cities bordering the seine david davinci death by starvation human dorothy and john sipple chu chu rocket gba sprites dieter thomas kuhn sam whitehorse fcat remediation laws adt employees background check clark davis headsets andrew francis christian kinsey david archuleta singing imagine alpha rooms century technology pte ltd make sauerkraut juice 07 jetta prices fabric locker hooking david soul puritan dvd actresses have to look feminine 10 acres utilities johnson county texas i tried lyrics by akon easel binders city of san clemente jobs 10x28 farm tractor tire dealer 2-stroke breakers uk abington memorial hospital 1964 ford fairlane sport coupe parts chez shea website 2008 calvacade of customs ballantine liquor sponsor sports events 3 dimensional tired angel charms airline tickets slave lake affirmative action for the disabled domaine parc estrie fast and the furious car 600 plus gym spa azden wm t-pro dave schonfeld flickr liisa oakes batista vs domino video compilation of cases in the philippines tcs ecolab annie hawkins plusexpresscredit.com heap leaching pictures mad hatter wallpaper bendixbrakes.com 10 deck plate civil service law 73 cumulative absence the andersons ethanol plant greenville ohio 1982 nikon camera carolina marking devices benefits of ht technology husqvarna suspenders 2008 meteor shower bradenton florida buckle up miley 7dollarmillionaire training call ron free hu china big mouth go hungry 300d canon cf sd adaptor checksbycd.com cam forming kenai alaska joseph jolly youboob.it boyfriends 10 inches edgar alan poe writings david whitaker fraud 2006 federal budget military spending fivei nederlands cambell 16 different types of pumpkins applesauce spice cake bacteria that causes heartburn bridgette clifton free-beauty-samples.com buy payton place movie 1980 s ear muffs ann taylor outlets fmc fmj l macgray.com magix music maker v12 crack lotzabbws.com 1872 f seated liberty dime apache junction mounted rangers basf shakopee minnesota polycom soundpoint ip601 phones blue butcher cps converter amtrak baltimore japaneese resterant southampton average life expectancy with lung cancer f3 jo clary homes for sale in staunton virginia az dept corrections semantic cues mccloud renals speeches about staying together airfield terminal design castaway kayak performance canada comment former une ong jimmyakin.org 1997 dodge 3500 van wind noise auto-titrators quotation camp flaming arrow scout all inclusive weddings jersey shore bob henning the advanced pro book beek n skiff ny cataract following corneal abrasion bette davis pocketful of miracles envision drivers emperor friedrich i animal shelter corona ca cocker ct waterford plantation airplay royalty rates 1985 bourgogne pinot noir ribbon ladies remembered cassava starch adidas pay and pray astrology at keen bermuda grass lawns google analytics click interface timothy benefits epoxy floor cryogenic a engine and so it goes song