It is possible for javascript to get stuck in a loop of opening up alerts. For example:
for(var i=0;;i++)
alert('This will never stop');
Is there a way to gracefully stop this in firefox, without having to kill the whole process?
|
It is possible for javascript to get stuck in a loop of opening up alerts. For example:
Is there a way to gracefully stop this in firefox, without having to kill the whole process? | |||||
feedback
|
|
perhaps the 'NoScript' plugin could help. Ban the site and the script won't be executed at all | |||
|
feedback
|
|
If you're quick enough with it, click "Ok" then hit F5. You may have to confirm one or two more popups, but the page will reload and you'll be saved. | |||||
feedback
|
|
Stackoverflow question reference: How do you stop an infinite loop in Javascript? A critical difference in your loop is the pop-up (user interaction) that prevents the "slow-script" detection. | |||
|
feedback
|
|
I usually have the Javascript popup in focus so that I can just hit Enter to get rid of it. Then, I position my mouse cursor just above the Close Tab button. I then begin a race where I hit Enter to close the popup and immediately click the Close Tab button before it has a chance to create another popup. | |||
|
feedback
|
|
I'm using AlertStopper (https://addons.mozilla.org/af/firefox/addon/13530/) myself. | |||
|
feedback
|
This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.