DHTML Exit Popup

schockergd

New member
Dec 11, 2008
3,282
30
0
Circleville Ohio
While thinking/working on ideas for one of my pages, I wanted to check conversions with a DHTML popup on-exit, offering them a freebie (Since they're leaving anyways).

However, I haven't been able to find the code I want, and would prefer not to have to pay for one of these $97 scripts that looks like it was written in 1998.

Any help would be appreciated :)
 


Originally you would just stick something in the body tag like so...

<body onclose="javascript:alert('or another bit of js, I prefer fancybox');">

you can also use Jquery to bind an onclose event to the window object.