Im needing a script that when a user clicks the "X" (closing the browser) or abandons my site a new small pop up window will appear..
The new small pop up window will ask "Why are you abandoning my site? Did you have any questions .. please let us know.." and then the user has the option to answer it or not.... then submit message or totally close the new window and main window..
I know the "window.closed" is the key but I dont know how to use it .. I checked on the internet but no information nor samples of it...
thanks..