您如何使用 JavaScript 强制 Chrome 页面/标签崩溃? [英] How do you force Chrome pages/tabs to crash using JavaScript?
问题描述
尝试设置 window.location
或使用 window.navigate()
使浏览器转到 about:crash
或 chrome://crash
不起作用.有办法吗?
FUN FUN LOOP:
<前>txt = "a";而(1){txt = txt += "a";//添加浏览器可以处理的数量}//[邪恶的笑] BOOM!所有内存都用完了,现在CRASHED!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.
这篇关于您如何使用 JavaScript 强制 Chrome 页面/标签崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!