I know how horrible pop-ups are but a client of mine insists that a window pops up when someone leaves his site.
I have a working script that will generate the pop-up when someone leaves the site by going to another address or hitting the back button. But it does not work when the visitor just closes the window. If anybody could help me out or point me in the right direction it would be much appreciated.