Please take a look at this website: http://www.mininggold.com/index.html The trick is when you close the page, there is a pop up with an additional message. How can make my website page to do that i.e bring up a pop-up when the user clicks off? I need the code, and how to edit it to fit my site (window height, width, etc) Thank you.
The following code snippets will help. <BODY bgColor=#cc9900 onBeforeUnload="return ExitPop();"> Code (markup): <script type='text/javascript'> <!-- var PreventExitPop = false; function ExitPop() { if(PreventExitPop == false) { PreventExitPop=true; MainBody.style.display='none'; ExitDiv.style.display='block'; return "*****************************************************\n\nDON'T LEAVE YET! I'll give you this one chance\nto get Mining Gold On The Internet FREE right now!\n\nPlease click on the CANCEL button to stay on this current page.\n\n*****************************************************" } } // --> </script> Code (markup): <a href="http://www.website.com/somepage.html" onclick="PreventExitPop=true">link name</a> Code (markup):
i've seen this too, its quite a good idea. when i saw it used, the yes redirected to an adult friend finder sign up. its unlikely anyone would fill it out but hey... and cheers for finding the code Clive's
I've seen tons of "websites" with that type of approach to selling things. Not sure they do real sales though. I do think that topdog9926 was just interested in their javascript trick