![]() | | ||||||||
| | #1 |
| FabianTan.com War Room Member Join Date: Nov 2006 Location: Singapore
Posts: 3,458
Thanks: 217
Thanked 384 Times in 119 Posts
|
Hi guys, I have been looking for a way to stop exit pop-ups from appearing when visitors click a Paypal buy button. For normal links, I know we're supposed to use onclick="exit=false" and that does it. For the life of me though, I can't figure out how to make it work with a Paypal button. Your help is much appreciated! Fabian |
![]() FREE - How To Pull In 1,000+ Unique Visitors To Your Websites Per Day! Download Your FREE Report Now! | |
| | |
| | #2 |
| Senior Warrior Member War Room Member Join Date: Aug 2008 Location: Atlanta GA Metro Area, USA.
Posts: 3,643
Blog Entries: 5 Thanks: 311
Thanked 925 Times in 644 Posts
|
Centralize your button/exit management Javascript and use a switch statement to determine the action to take.
|
| Product Reviews | Earn Online Cash | Free HTML Templates Free WordPress Themes: Boring Memo | Dateless Mini-Site | Info Magazine | 100 Twenty-Ten Niche Headers Discount Templates, Graphics and Scripts: Templates for Website | |
| | |
| | #3 |
| www.Richard-Legg.com War Room Member Join Date: Feb 2007 Location: Seattle, WA
Posts: 270
Thanks: 3
Thanked 36 Times in 19 Posts
|
Hey Fabian, Instead of directly using a paypal button, try making the 'buy now' button/image link to another file, e.g. order.php, which loads and posts the paypal payment code automatically. That way you can then add the 'exit=false' code to the order.php link as you would any other link. That's a quick workaround. You can also usually add it to the paypal button code, but you need the button code to be un-encrypted so you can add it to the 'action' tag. But doing that will leave your thank you page URL exposed unless you can encrypt it some other way AFTER modifying it. I tend to stick with just linking to another file that loads the payment code for me. Hope this helps, Richard |
| | |
| | |
![]() |
|
| Tags |
| blocking, buttons, paypal, popups |
| Thread Tools | |
| |
![]() |