Categorized | Programming

Howto : Crash Internet Explorer

Posted on 31 August 2006

The news of a single line of javascript code crashing internet explorer intermittently was like Yanni to my ears. This is very true, Stuart Brown has come up with a piece of code which is exactly 61 bytes long and it crashes IE but not Firefox. The piece of code throws an exception in IE and quits. This piece of code can be incorporated on any webpage. So, wemasters who support Firefox, let’s start adding this code to all the websites we design.


Stuart Brown accidentally stumbled upon this piece of code which he wrote one year back. He wrote a script to iterate through objects and print their properties. He tried this on the ‘document.write’ method, used to output text to the document. He forgets the reason, but remembers the outcome.

Here is the code :
<script>for (x in document.write) { document.write(x);}</script>

Be warned, if you are running Internet Explorer, your browser will most likely crash, taking all your currently open windows with it, and possibly rendering your system unstable.

For those of you running IE still, it’s time to switch to stop all these glitches hampering your browsing experience. Better late than never.

via Modern Life Rubbish

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

This post was authored by:

Abhinav Kaiser - who has written 185 posts on Tech Pedia.

Abhinav Kaiser is an accomplished technical blogger and a cyber entrepreneur. He owns Tech Pedia along with several blogs/businesses on the web. To get in touch with him, hit the 'Contact Us' button on the top.

Contact the author

1 Comments For This Post

  1. bob says:

    for (x in document.write) { document.write(x);}

Leave a Reply

Site Sponsors

  • programming freak: And by the way thanks for those useful codes, i am surprised a site like this has C codes? and...
  • programming freak: Keep posting some codes man, i would be glad to find some c/c++/java/html/unix codes, sql queries...
  • programming freak: Hey thanks, good one!
  • Nathaniel Baker: its all good information.. but you forgot one very very important thing…. FAT32 can not...
  • om: Yeah sure it is.. :)

Older Posts

Ads

  • Advertise Here

Topics