你如何强迫Chrome浏览器页面/标签崩溃使用JavaScript? [英] How do you force Chrome pages/tabs to crash using JavaScript?
问题描述
window.location
或使用 window.navigate()
使浏览器转到 about:crash
或 chrome:// crash
不起作用。有没有办法做到这一点?FUN FUN LOOP:
txt =a;
while(1){
txt = txt + =a; //添加尽可能多的浏览器可以处理
}
// [邪恶的笑声] BOOM!所有内存用完了,现在已崩溃!
http://jsfiddle.net / DerekL / M45Cn / 1 /
对不起中文字元...
额外
Fun Fun Loop也适用于Firefox!
以及我必须对Safari进行掌声,因为 自动 在页面即将崩溃时重新加载页面!良好的Webkit开发人员!
哦是啊...
警告:不要尝试在Internet Explorer中... 因为它不是我的浏览器,而是崩溃了我的Windows 7 ...
是的。在那之后我必须重新启动电脑。
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?
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/
Sorry for the Chinese characters...
Extra
Fun Fun Loop also works on Firefox!
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... Yes. I have to restart the computer after that thing.
这篇关于你如何强迫Chrome浏览器页面/标签崩溃使用JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!