Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

button _blank help

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
dsmithner
Smarty n00b


Joined: 03 Mar 2009
Posts: 1

PostPosted: Tue Mar 03, 2009 12:18 am    Post subject: button _blank help Reply with quote

Hi all,

I need help getting a button which links to another site, to open in a new window.

<td class="norm" align="left"><input type="button" class="btn" value="Continue" onclick="location.href='URL'" /></td>

Any help would be greatly appreciated!!
Back to top
View user's profile Send private message
jothirajan
Smarty Pro


Joined: 06 Feb 2009
Posts: 114
Location: India

PostPosted: Tue Mar 03, 2009 3:36 am    Post subject: Re: button _blank help Reply with quote

dsmithner wrote:
Hi all,

I need help getting a button which links to another site, to open in a new window.

<td class="norm" align="left"><input type="button" class="btn" value="Continue" onclick="location.href='URL'" /></td>

Any help would be greatly appreciated!!


<td class="norm" align="left">
<input type="button" class="btn" value="Continue" onclick="location.href='URL'" />

</td>



Happy coding

Code:

<td class="norm" align="left">
<a href="http://www.google.com" target="_blank">
<input type="button" class="btn" value="Continue"/>
</a>

</td>



Thanks
JO
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP