I have various browsing sessions, one is for email, one for studies etc. With one of the browsing sessions when I try to close a tab, firefox asks if I really want to close this tab, because for some reason it thinks I'm writing a message. This is really starting to get on my nerve, not because of firefox, but because of the website that triggers these popups.
Is there a way to disable these?
I've trying so hard to find an answer, so I would be really grateful for your help!
- All posts
- Helpful Solutions
That is caused by a script that run on the page and is triggered by an onbeforeunload event
You probably can't disable such a warning alert, but you can check if you can find a Greasemonkey script to disable such an event
- void(onbeforeunload = null);
- Greasemonkey: https://addons.mozilla.org/firefox/addon/greasemonkey/
Years before, I set up a setting to block onunload from opening popup windows on some advice from a website.
Will that still work with the current release of Firefox? If not, will this work?
- IMPORTANT ANNOUNCEMENT: We’re going through some system changes, that may have slowed responses to your questions. If you had asked a question in the last couple of months, please re-post it and the community will help you as soon as we can. If you’ve registered after February 7th, please register again, the accounts on the previous site were not migrated to this temporary site. If you joined us before February 7, please reset your password if you have trouble logging into this temporary site.