javascriptmacoscoda

Javascript alert loop


I am very rookie when it comes to javascript, and I unwittingly created a alert which loops endlessly and means I cannot save the document and close the program.

Is there a way in surpassing the Javascript alert UI from the operating systems perspective, so I can still control the program.

I am running OSX 10.11.6 using Coda 2.

I cannot edit the code because the Javascript alert changes the focus to it then it appears, so then I close it another window appears.


Solution

  • I fixed the problem by hiding the program, then opening another document then going back to the document with the error I could save it. Then when I restarted I opened the program was able edit the code before It executed the code.