Who doesn't hate IE6? Sadly, developers have to deal with that obsolete browser due to the still important amount of people using it. Here is a small non-exhaustive list of html and Javascript codes that will totally crash IE. After all, this browser is such a pain for developers, that we have the right to avenge us from time to time;)

Let’s start with the longest of all:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
  <head>
    <title>CRASH-IE</title>
    <style type="text/css">
      html, body {
      overflow: hidden;
      scrollbar-base-color: #330066;
      } 

      .crash {
      position:absolute;
      left:200px;
      top:200px;
      width:200px;
      }
    </style>

    <script type="text/javascript">
    function galgenfrist() {
        window.setTimeout('crashIE();',1000);
    }

    function crashIE() {
        var moveNode = document.getElementById("move");
        if(moveNode) {
            moveNode.style.top = "100px";
            moveNode.style.left = "200px";
        }
    }
    </script>
</head> 

<body onload="galgenfrist();">

    <h1>CRASH-IE</h1>
    <div id="move" class="crash">
    <table>
        <tbody>
        <tr>
        <td>
              <textarea></textarea>
        </td>
        </tr>
        </tbody>
    </table>
    </div> 

</body> 

</html>

Javascript and IE6, a true love story…

<script>for (x in document.write) { document.write(x);}</script>

This one was discover last year:

<style>*{position:relative}</style><table><input></table>

Anti-IE Javascript strikes back!

<body onLoad=”window()”>

Now my favorite: 11 symbols and…bang :D

<STYLE>@;/*

This one is the only one I know which make IE7 crash:

function getX( oElement ) {
    var iReturnValue = 0;
    while( oElement != null ) {
        iReturnValue += oElement.offsetLeft;
        oElement = oElement.offsetParent;
    }
    return iReturnValue;
}

Have some nice crashs ;)

Related Posts

No related posts.
 

29 Comments

  1. Jake
    Posted June 18, 2008 at 6:41 pm | Permalink

    I didn’t tried them all, but already had lots of fun! ie sucks

  2. Grady
    Posted June 18, 2008 at 11:02 pm | Permalink

    Seems that number 3 doesn’t make my IE6 crash. Others works properly.

  3. Posted June 30, 2008 at 4:04 pm | Permalink

    Unfortunately I already uninstalled all IE Versions…

  4. Posted June 30, 2008 at 4:32 pm | Permalink

    @mig: Me too. But it can be very funny to put on a website ;)

  5. Posted June 30, 2008 at 10:55 pm | Permalink

    …and set the website as homepage xD

  6. Posted June 30, 2008 at 10:58 pm | Permalink

    Sure, it’s a good way to convince someone who doesn’t want to switch to Firefox ;)

  7. Posted July 4, 2008 at 6:30 am | Permalink

    the second one just closes the IE and does not crash … I tried by opening 2 windows and one just closed!! can u call this crashing? :)

    BTW I never use IE…

  8. Posted July 4, 2008 at 6:33 am | Permalink

    “Who doesn’t hate IE6? Sadly, developers have to deal with that obsolete browser due to the still important amount of people using it.”

    this is true…. :(

  9. Posted July 4, 2008 at 6:53 am | Permalink

    @shoban: For what I remember, the second crash IE as well as the others. I don’t have IE right now, but i’ll make a retry when i’ll be at work.
    Btw, which serious people still use IE?

  10. Posted July 11, 2008 at 1:27 am | Permalink

    IE is still used by the majority of internet users because it’s convinient, every Windows has it. But it’s good treand to see that this number is smaller every day. I have been looking data for my blogs, and IE7 is third, and IE6 fifth browser. Firefox2 and Opera9 are first two. So, eventually IE6 will be gone, and IE7 is not that bad, but I would like to see it gone too. God help us with new IE8.

  11. Posted August 1, 2008 at 2:57 pm | Permalink

    the last one does not work at all…

    but the one with “position:relative” discovered last year still works on fully patched IE7 & XP SP3!

    there was even an icq 6 crash possible meanwhile..

  12. shanna
    Posted September 5, 2008 at 12:40 am | Permalink

    Designers should STOP using all kinds of hacks to make their designs work in IE. I mean, it’s about time all the people who still use IE migrate (…) to browsers that do a better job. Please let IE crash BIG TIME and let’s take it to the graveyard and get it over with, once and for all.
    About time it becomes extinct.

    My humble opinion…

  13. Posted September 5, 2008 at 7:24 am | Permalink

    @shanna: Totally agree…

  14. shanna
    Posted September 8, 2008 at 3:00 am | Permalink

    @jbj: So good to know I’m not alone in this… (grin)

  15. Technetium
    Posted October 2, 2008 at 8:14 am | Permalink

    The IE7 one wouldn’t work for me..

  16. zaphod
    Posted October 2, 2008 at 7:13 pm | Permalink

    just for fun….
    this actually works, tested back to ie 5, on safari and FF 2 & 3

    function getX( oElement ) {
    var iReturnValue = 0;
    do{
    iReturnValue += oElement.offsetLeft;
    }while(oElement = oElement.offsetParent)
    return iReturnValue;
    }

    there is no typo, ‘while(oElement = oElement.offsetParent)’ is the important line

  17. Posted October 2, 2008 at 7:14 pm | Permalink

    @zaphod: I’ll test it, thanks for your contribution!

  18. Jack
    Posted December 21, 2008 at 7:16 pm | Permalink

    The People out there who still use IE is the people not often use computer, thats why they don’t know how bad IE is. No need care for them.

  19. Posted July 20, 2009 at 8:49 pm | Permalink

    Whew! I always check me design on all IE though I hate them.

  20. Tetsui
    Posted July 21, 2009 at 1:40 pm | Permalink

    I have a great idea. All those in the web design/dev arena decide on a date when we all stop using ie6. It will be a unified push to get rid of the enemy. I think we have pandered to its oppresive regine far too long, lets stand up for “ie must die day”, spread the word!

  21. Shrikant Chillal
    Posted July 22, 2009 at 12:46 pm | Permalink

    I should always check on all browsers

  22. groovey
    Posted July 22, 2009 at 3:52 pm | Permalink

    C’mon… Rather make nice flashing “IE6 not supported, please upgrade to newer browser.” It is easier and smarter.

  23. Taruna
    Posted August 25, 2009 at 3:37 pm | Permalink

    omg !! guess what i was given with as the first task with my this new job was to fix their website on IE6, and I got the success in everything, just couldn’t get my PNG Fix (sob)

  24. Posted September 2, 2009 at 4:54 pm | Permalink

    IE 6 restrictions in the integration with Javascript code haven’t been finally eliminated in the 7th issue of Internet Explorer. My experience proves that it’s possible to deal with IE and Firefox but it’s really impossible to make cross browsing code in JS for Opera browsers.

  25. DrKode
    Posted September 29, 2009 at 1:07 pm | Permalink

    I have tried to create a html file with content “@;/*” just to try out this IE crasher on my corporate IE6. But McAfee virus scanner detected it as Trojan! :D

  26. DrKode
    Posted September 29, 2009 at 1:09 pm | Permalink

    ee.. I wanted to say that was a crash script “11 symbols and…bang”..

  27. Perry Clease
    Posted September 29, 2009 at 7:27 pm | Permalink

    Put one of the scripts on your formmail page, no more spam!

  28. .©@®L:focus { }
    Posted October 25, 2009 at 5:01 am | Permalink

    I’d guess a good way should be to put the 11-symbol trick inside a switch.
    Like:

    @;/*

    Even if the page will work in other browsers, it doesn’t feel good to leave a tag opened like that. Must be better to hide from the other ones?

    And thanks jbj for this great page.

  29. Sebs
    Posted December 10, 2009 at 3:19 pm | Permalink

    The point is though, they can’t do anything useful on your website anymore. So I would target particularly stubburn person’s IP addresses.

25 Trackbacks

  1. By Web 2.0 Announcer on June 19, 2008 at 5:20 pm

    6 html and javascript codes to crash IE6…

    [...]Who doesn’t hate IE6? Sadly, developers have to deal with that obsolete browser due to the still important amount of people using it.&#xD;
    Here is a small non-exhaustive list of html and Javascript codes that will totally crash IE.&#xD;…

  2. By 6 html and javascript codes to crash IE6 on June 19, 2008 at 5:22 pm
  3. [...] 6 html and javascript codes to crash IE6 – [...]

  4. [...] 6 html and javascript codes to crash IE6 …scrollbar-base-color: #330066; } .crash { position:absolute; left:200px; top:200px; width:200px; [...]

  5. [...] } return iReturnValue; } На этом все. Ломайте на здоровье ИсточникДобавить в [...]

  6. By links for 2008-06-24 | iKeif on June 24, 2008 at 7:32 pm

    [...] 6 html and javascript codes to crash IE6 2 hours agoCrash IE! I remember people who’d code to crash Netscape back in the day.Dynamic CSS [...]

  7. [...] Cats Who Code give 6 HTML and Javascript snippets that crash Internet Explorer 6. The shortest one is an 11 symbol character string. [...]

  8. [...] O CatsWhoCode parece ser o endereço dos desenvolvedores que têm asco do Internet Explorer. Creio que meu leitor conhece minha preferência pelo Firefox. Mas estou resignado a usar o Firefox e ignorar um outro navegador bastante utilizado. Este não é o caso do CatsWhoCode que publicou uma lista de seis formas de derrubar o Internet Explorer: [...]

  9. [...] at catswhocode wrote a post about 6 html and javascript codes that crash IE6. Check out the codes here. Let me search for my IE shortcut and tryout some of those [...]

  10. [...] at catswhocode wrote a post about 6 html and javascript codes that crash IE6. Check out the codes here. Let me search for my IE shortcut and tryout some of those [...]

  11. By Top 5 jokes to do on a Windows machine on September 12, 2008 at 3:52 pm

    [...] in June this year, I wrote a funny article containing 6 html and javascript codes to crash Internet Explorer. But at the time, I didn’t knew that someone created a website called http://www.crashie.com. As you [...]

  12. By IE6 Must Die! | The Blog of Rudy Amid on November 18, 2008 at 8:51 pm

    [...] 6 Codes to Crash IE6 [...]

  13. By 8 Javascript solutions to common CSS problems on March 23, 2009 at 12:12 pm

    [...] Source: 6 html and Javascript codes to crash IE [...]

  14. By Defending IE6 - blog - coda.coza on April 1, 2009 at 2:38 am

    [...] Lately I’ve noticed an increasing trend among web designers/developers who are proudly announcing their decision to drop Internet Explorer 6 from their list of supported browsers, or advocating ways that enforce IE6 users into upgrading. Some of these methods are good for a laugh, some make the usual noise (complicate your markup with upgrade messages), while others are downright scary. [...]

  15. [...] gets more bashings with code to crash ie and a lovely IE6 voodoo doll. I don’t approve of using the crash code, but it shows how [...]

  16. [...] Make sure IE6 will crash! And practice your evil laughter when the crash occurs. [...]

  17. [...] Nice! Find more on how to make IE6 and IE7 crash on Cats Who Code. [...]

  18. [...] If you're interested in more "IE6 killer" techniques, you should definitely have a look on here. [...]

  19. [...] pour d’autre commande de ce type ce site est la. [...]

  20. By 15+ amazing anti IE resources on September 28, 2009 at 4:52 pm

    [...] Inter Explorer can easily being crashed by including some code in your source files. This article shows up to 6 different methods to get rid of the loser's browser. » http://www.catswhocode.com/blog/6-html-and-javascript-codes-to-crash-ie6 [...]

  21. By 15+ amazing anti IE resources | meshdairy on October 29, 2009 at 9:10 am

    [...] Inter Explorer can easily being crashed by including some code in your source files. This article shows up to 6 different methods to get rid of the loser’s browser. » http://www.catswhocode.com/blog/6-html-and-javascript-codes-to-crash-ie6 [...]

  22. [...] 6 html and javascript codes to crash IE6 [...]

  23. [...] 该代码参考自网站Cats who Code。该Bug发现与2007年,据说是一名日本人发现的: [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Smashing Network
WordPress Appliance - Powered by TurnKey Linux