Infinite JavaScript Alert - Don't know how to turn it off

I actually just found a very nice solution to this. If you open the page and get the loop running, leave the page open and open it again in a new tab. You may need to click ok on the alert popup a few times before the page loads, but once you go onto the new tab you opened, it won’t run the code. Now you can edit the code and reload the page. Voila! Your Infinite loop is gone.