Avneesh
Avneesh

Reputation: 149

Can we crash browser forcefully using javascript

Is there any way to crash the browser(chrome, firefox, IE) forcefully running some javascript/jquery code?

Upvotes: 0

Views: 1660

Answers (2)

The best one:

while(true) { window.location.reload() }

Upvotes: 1

Guffa
Guffa

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

Related Questions