![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Do Fun Shit.
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Do Fun Shit.
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: May 2005
Posts: 210
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |