1

This is normally a simple solution if I were using <a href> but because I am using <input> I can't figure out how to make this open a new window using target="_blank". Is there any way to do this that combines the onclick and all in this one line of code?

 <INPUT Type="BUTTON" Value="SURVEY" Onclick="window.location.href='HTTP://WWW.YAHOO.COM'"> 
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Vzupo
  • 1,388
  • 1
  • 15
  • 34

1 Answers1

1

use window.open instead

<INPUT Type="BUTTON" Value="SURVEY" Onclick="window.open('HTTP://WWW.YAHOO.COM');">
Sagar V
  • 12,158
  • 7
  • 41
  • 68