We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

Javascript keeps opening an alert so that I can't leave webpage or close FF.

  • 1 valiny
  • 8 manana an'ity olana ity
  • 8 views
  • Valiny farany nomen'i cor-el

more options

A bad JavaScript keeps open an alert so that the page is locked. Whereas Chrome includes a checkbox that prevents further alerts from the page, what does FireFox provide?

And worse, when I ctrl-alt-del-close FF, it "recovers" but reloading that same bad script and sticking it to me again.

I figure there must be some secret keystroke to fix this. What is it? Thanks.


This happened

Just once or twice

== Bad JavaScript

A bad JavaScript keeps open an alert so that the page is locked. Whereas Chrome includes a checkbox that prevents further alerts from the page, what does FireFox provide? And worse, when I ctrl-alt-del-close FF, it "recovers" but reloading that same bad script and sticking it to me again. I figure there must be some secret keystroke to fix this. What is it? Thanks. == This happened == Just once or twice == Bad JavaScript

All Replies (1)

more options

Firefox 3.5 and later versions will automatically try to restore the tabs and windows from the last session if a crash has occurred or Firefox wasn't closed properly the previous time.

Set the pref browser.sessionstore.max_resumed_crashes to 0 on the about:config page to get the about:sessionrestore page immediately with the first restart after a crash has occurred or the Task Manager was used to close Firefox. See https://wiki.mozilla.org/Session_Restore#Preferences http://kb.mozillazine.org/Browser.sessionstore.max_resumed_crashes See also http://kb.mozillazine.org/Session_Restore#Firefox_keeps_crashing_after_restoring_a_session

To open the about:config page, type about:config in the location (address) bar and press the Enter key, just like you type the url of a website to open a website. If you see a warning then you can confirm that you want to access that page.