Hello, I would like to open a modal window the moment the user tries to close the browser and ask if they really want to leave.
I know I could do this with beforeunload, but I wanted to control it in case it does not force and display the banner again.
Thank you.