Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 26th Oct 2012, 04:46 PM   #1
Entrepreneur
 
Join Date: 2006
Location: San Francisco, CA
Posts: 67
Thanks: 4
Thanked 3 Times in 3 Posts
Lightbulb
Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

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 is offline  
Unread 26th Oct 2012, 05:07 PM   #2
Entrepreneur
 
Join Date: 2006
Location: San Francisco, CA
Posts: 67
Thanks: 4
Thanked 3 Times in 3 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

$5 paypal to anybody who helps me out by the end of today!

Much appreciated.
charless is offline  
Unread 26th Oct 2012, 05:10 PM   #3
Advanced Warrior
War Room Member
 
Janet Sawyer's Avatar
 
Join Date: 2003
Location: United Kingdom.
Posts: 737
Thanks: 107
Thanked 208 Times in 159 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

Just Google Exit Splash. Or Dave Guindon.

That should find it for you.

Janet Sawyer is offline  
Unread 26th Oct 2012, 05:14 PM   #4
Entrepreneur
 
Join Date: 2006
Location: San Francisco, CA
Posts: 67
Thanks: 4
Thanked 3 Times in 3 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

ah, that's the correct term for it.

thank you very much!
charless is offline  
Unread 26th Oct 2012, 05:18 PM   #5
HyperActive Warrior
 
webhosting's Avatar
 
Join Date: 2008
Location: San Miguel de Salinas, Spain
Posts: 148
Thanks: 34
Thanked 45 Times in 39 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

You can use javascript - window.onbeforeunload.

MarbleHost.com - reliable web hosting since 2005
webhosting is offline  
The Following User Says Thank You to webhosting For This Useful Post:
Unread 26th Oct 2012, 05:18 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: 2009
Location: North East - UK
Posts: 248
Thanks: 211
Thanked 45 Times in 35 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

Check out an old post of mine on here:

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

it's free.

If what I said helps, let me know, throw me a 'thanks'.
newbim is offline  
Unread 26th Oct 2012, 05:21 PM   #7
HyperActive Warrior
War Room Member
 
Join Date: 2009
Location: North East - UK
Posts: 248
Thanks: 211
Thanked 45 Times in 35 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

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.

If what I said helps, let me know, throw me a 'thanks'.
newbim is offline  
Unread 26th Oct 2012, 09:14 PM   #8
Social Apps Made Easy
War Room Member
 
FirstSocialApps's Avatar
 
Join Date: 2012
Location: Mooresville, NC
Posts: 913
Thanks: 231
Thanked 259 Times in 213 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

Listen to what webhosting said,

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

FirstSocialApps is offline  
Unread 27th Oct 2012, 12:12 PM   #9
Active Warrior
 
Join Date: 2012
Posts: 97
Thanks: 12
Thanked 12 Times in 11 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

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.
Attached Files
File Type: zip exitsplash.zip (924 Bytes, 31 views)
viescripts is offline  
Unread 28th Oct 2012, 05:11 PM   #10
Entrepreneur
 
Join Date: 2006
Location: San Francisco, CA
Posts: 67
Thanks: 4
Thanked 3 Times in 3 Posts
Default
Re: Javascript Alert on Exit Page
Share on: 
fb share twitter share gplus share more share

thanks.....

Working on three potentially large scale business projects backed by investors.
If you'd like to chat or network with me, add me on Skype: charlesgmullen0.
charless is offline  
Closed Thread


Bookmarks

Tags
alert, exit, javascript, page


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




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