I'm working on a website and JavaScript has an important role on the front end, I was using the beforeunload
event to always check if the user has edited anything on the page to warn you of possible information loss.
It turns out that this event is not compatible with firefox. What alternative can I use to do this verification?