Help with javascript button

shingionline

New Member
Hi guys,

I have an input button which is set to open a url:

Code:
<input type="button" value="Go to facebook" 
onclick="location.href='http://facebook.com'" target="_blank" />

This works fine except the facebook page opens in the same window, how can i get it to open in a new page it appears the target="_blank" does not work on input buttons

Thanks in advance
 

ronaldroe

Super Moderator
Staff member
You would probably be better off using an image and linking that, but try this for your specific question.
 
Top