I'm using this code:
HTML Code:
<a href="{URL}" target="_blank"><input type="button" value="{TEXT}" /></a>
When I click the button it opens two new tabs. This is the html I'm using for a BBcode button on my forum and I don't want two tabs to open every time a poster clicks one of these buttons. I set the target to "_blank" because I want the button to open the specified URL in a new tab when the user clicks the button. This way they wont leave my website. How can I fix this?
EDIT: I'm probably using the <a> tag and the <input> tag in the wrong way...is there a better way of doing this?
Last edited by CHA0S; 01-18-2010 at 03:50 PM..
|