Monday, May 20, 2024
1
rated 0 times [  6] [ 5]  / answers: 1 / hits: 60575  / 12 Years ago, sun, june 10, 2012, 12:00:00

Trying to set window.location or using window.navigate() to make the browser go to about:crash or chrome://crash doesn't work. Is there a way to do it?


More From » google-chrome

 Answers
85

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




Sorry for the Chinese characters...







Extra



Fun Fun Loop also works on Firefox!
enter



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
Yes. I have to restart the computer after that thing.


[#85014] Friday, June 8, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
reed

Total Points: 725
Total Questions: 85
Total Answers: 89

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;