-1
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 quit.
I know I could do this with beforeunload, but I wanted to control in case it remains not force and appear the banner again.
Thank you.
Apart from the fact that it is a bad idea to prevent users from doing what they want (close the browser) there are limitations on some browsers of what you can ask/show: http://answall.com/q/60044/129
– Sergio
@Sergio really is a bad thing, but it was what I was asked. About the message I know it is displayed, even so I need to do it. Thanks.
– MoisesGama