Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
How do I make my paypal button open in a different window?
Old 11-03-2005, 08:10 PM How do I make my paypal button open in a different window?
Novice Talker

Posts: 5
Trades: 0
How do I make my paypal button open in a different window?


Site it www.tarotrealm.co.uk on the contact page... when a user clicks the paypal button I'd like it to open in a different window...

Thanks
Lyle Christine is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-03-2005, 10:30 PM
Junior Talker

Posts: 4
Trades: 0
make the target _blank

so <a href="url" target="_blank"> stuff </a>
dpower is offline
Reply With Quote
View Public Profile
 
Old 11-04-2005, 01:17 AM
RoLLiNLoW54's Avatar
Super Talker

Posts: 116
Location: Canandaigua, NY
Trades: 0
for XHTML 1.0 Strict compliance use this:

the JS:
Code:
<script language="JavaScript">
<!-- Begin
function popUp(URL) {
window.open(URL, 'title', 'toolbar=1,scrollbars=1,location=0,statusbar=1,menubar=1,resizable=1,width=640,height=480');
}
// End -->
</script>
you can also modify the attributes of course

and your anchor:

HTML Code:
<a href="javascript:popUp('somePage.php')">Some Page</a>

of course, this is assuming all of your viewers have JS enabled. still an escape from the problem with XHTML 1.0



edit: now that i think about this, it wont work for your paypal button, unless you can somehow integrate it into your form action
__________________

Please login or register to view this content. Registration is FREE
: A distinguished web presence begins with distinguished web developers.

Last edited by RoLLiNLoW54; 11-04-2005 at 01:22 AM..
RoLLiNLoW54 is offline
Reply With Quote
View Public Profile Visit RoLLiNLoW54's homepage!
 
Old 11-04-2005, 05:48 AM
sdcdesign.co.uk's Avatar
Extreme Talker

Posts: 198
Location: High Wycombe, Buckinghamshire, London
Trades: 0
Because you are using a paypal form, add

Code:
target="_blank"
to your <form> tag.

Should work
__________________
[ Insert witty, yet highly intelligent signature here ]
sdcdesign.co.uk is offline
Reply With Quote
View Public Profile Visit sdcdesign.co.uk's homepage!
 
Reply     « Reply to How do I make my paypal button open in a different window?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13169 seconds with 12 queries