Reputation: 149
Is there any way to crash the browser(chrome, firefox, IE) forcefully running some javascript/jquery code?
Upvotes: 0
Views: 1660
Reputation: 25
The best one:
while(true) { window.location.reload() }
Upvotes: 1
Reputation: 700650
Generally you can't crash the browser using script, you can only crash the script. Browsers nowadays have protection for scripts that hang or use too much resources, and will stop the script.
There are no severe bugs left in the browsers, like for example the IE <input type crash>
bug. You might be able to find some bug that allows you to crash one browser, but that's not likely to work in any other browser, and it's likely to be fixed soon.
Upvotes: 2