How to trigger a warning pop-up when leaving/refreshing/closing a page?
Is there a setting or an add-on that triggers a warning pop-up if I want to leave/refresh/close a page in which I had been editing a form?
It would be great if this could be switched on for specific domains only, but it would already be helpful to just switch this feature on in general. I‘m working with a website where many times information gets lost because page is left by accident.
I haven‘t found a solution so far. Thanks very much in advance!
Eminye Imininingwane Yohlelo
- I-ejenti Engumsebenzisi: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Hi philippwr, I'm not sure about a warning pop-up but, have you tried Pinning the tab?
Right click on the tab and select Pin Tab
Here's more information:
Pinned Tabs - keep favorite websites open and just a click away https://support.mozilla.org/en-US/kb/pinned-tabs-keep-favorite-websites-open
Some website do this via an onbeforeunload event (about:config -> dom.disable_beforeunload = true), but you can't add this for other website.
There are extensions that can backup data you typed, so maybe look for such a workaround to prevent losing what you typed in case you accidentally close a tab and "History -> Recently Closed Tabs" doesn't help.