Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-24-2007, 06:51 AM   #1
coolegg2
Confirmed User
 
Join Date: May 2005
Posts: 210
js popup that appears only when backing out of a page?

Sometimes I think google is not the SE it once was... having trouble finding something like this:

I need some javascript that will pop up a window only when the user uses the browser Back button, but not if they click a link on the page. In otherwords the scenario is

Page 1 > Page 2 > Sign-up Page

I want a popup to appear if the person backs out of Page 2 but not if they proceeed to the sign-up form.

Any suggestions?
coolegg2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 06:53 AM   #2
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
standard pop up code with validation variable on clicked urls

if user clicks <a> 1 the pop up is turned on

if user clicks <a> 2 the pop up is turned off...

simple enough
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:10 AM   #3
coolegg2
Confirmed User
 
Join Date: May 2005
Posts: 210
Thanks munki, but can you elaborate? I don't follow you exactly. An example page maybe?

If you are saying have the standard popup-on-exit code but somehow it gets disabled if they click on the link to the signup page, then that would work for me, but I have no idea what that js would look like.
coolegg2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:12 AM   #4
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
use a js if then else statement... and set the var from the a href call
__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:17 AM   #5
coolegg2
Confirmed User
 
Join Date: May 2005
Posts: 210
Okay, thanks man. That points me in the right direction. I don't know js very well though, so I'll have to try to find an example/sample code.
coolegg2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:32 AM   #6
sysk
Confirmed User
 
sysk's Avatar
 
Industry Role:
Join Date: Aug 2007
Location: Montreal
Posts: 1,005
Try AJAX for switching between pages until registration is completed and add a JS that will alert() or confirm() on exit.
__________________
icq: 612510168 / email: [email protected] / php ninja 4 hire
sysk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 07:44 AM   #7
pornguy
Too lazy to set a custom title
 
pornguy's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
Guys. he is looking for the code. Anyone that has it please share.

If I had it, I would post it for you.
If I find it today I will.
__________________
PornGuy skype me pornguy_epic

AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
pornguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-24-2007, 01:58 PM   #8
coolegg2
Confirmed User
 
Join Date: May 2005
Posts: 210
Quote:
Originally Posted by pornguy View Post
Guys. he is looking for the code. Anyone that has it please share.

If I had it, I would post it for you.
If I find it today I will.
Thanks man.

And if anyone else has it handy that would be great!
coolegg2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.