49
votes
12answers
4k views

Preventing users from closing browser tab. Bad idea?

I have a customer who wants to add one of those annoying JavaScript alerts that prevent users from closing a browser tab to make them a discount offer. You know, something like: "are you sure you ...