How do you force Chrome pages/tabs to crash using JavaScript?

FUN FUN LOOP:

txt = "a";
while(1){
    txt = txt += "a";    //add as much as the browser can handle
}
//[evil laugh] BOOM! All memory used up, and it is now CRASHED!

http://jsfiddle.net/DerekL/M45Cn/1/

enter image description here

Sorry for the Chinese characters…


Extra

Fun Fun Loop also works on Firefox!
enter image description here

And I have to give an applause to Safari, because it automatically reload the page when it is about to crash! Good job Webkit developers!

Oh yeah…

WARNING: Don’t try it in Internet Explorer… Because it crashed not my browser, instead, it crashed my Windows 7…
enter image description here
Yes. I have to restart the computer after that thing.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)