Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Javascript Alert on Exit Page (https://www.warriorforum.com/programming/701928-javascript-alert-exit-page.html)

charless 26th October 2012 04:46 PM

Javascript Alert on Exit Page
 
I tried searching a bit but couldn't find anything to help me with this.

You know those sales pages that prompt if you're about to leave and you press okay/cancel, okay to leave, cancel to stay on the page. It has to be persistent too meaning they have to click it a couple of times.

Please let me know if you can help me out.

Charles

charless 26th October 2012 05:07 PM

Re: Javascript Alert on Exit Page
 
$5 paypal to anybody who helps me out by the end of today!

Much appreciated.

Janet Sawyer 26th October 2012 05:10 PM

Re: Javascript Alert on Exit Page
 
Just Google Exit Splash. Or Dave Guindon.

That should find it for you.

charless 26th October 2012 05:14 PM

Re: Javascript Alert on Exit Page
 
ah, that's the correct term for it.

thank you very much!

webhosting 26th October 2012 05:18 PM

Re: Javascript Alert on Exit Page
 
You can use javascript - window.onbeforeunload.

newbim 26th October 2012 05:18 PM

Re: Javascript Alert on Exit Page
 
Check out an old post of mine on here:

http://www.warriorforum.com/website-...free-code.html

it's free.

newbim 26th October 2012 05:21 PM

Re: Javascript Alert on Exit Page
 
If memory serves, you can add it to more than one page as well so you can make it as persistent as you want it to be.

FirstSocialApps 26th October 2012 09:14 PM

Re: Javascript Alert on Exit Page
 
Listen to what webhosting said,

<body onbeforeunload="alert('foo');">

viescripts 27th October 2012 12:12 PM

Re: Javascript Alert on Exit Page
 
1 Attachment(s)
In fact all browsers try to avoid all kind of popups/exit ads/pop over ads etc.

The theory of exit window is the following one:

When someone is willing to exit the page, the unload page action is prevented and visitor is offered some other action, to stay or continue. If visitor decides to stay where they are a div of 100% width and 100% height with a iframe inside goes over the existing content.


See the source below:

Code:

<!-- Start of ExitSplash.com Code -->
<script language="javascript">
var exitsplashmessage = "Some offer goes here";
var exitsplashpage = "http://yoururlhere";
</script>
<script language="javascript" src="exitsplash.js"></script>
<!-- End of ExitSplash.com Code -->

Code is open source, taken from ExitSplash.com website.

I have used this code on several websites, if you need any help with integration, let me know.

See the exitsplash file attached.

charless 28th October 2012 05:11 PM

Re: Javascript Alert on Exit Page
 
thanks.....


All times are GMT -6. The time now is 06:41 AM.