I have form with two buttons submit.
The code is:
<form action="index.php" method="get">
<table cellpadding="2" cellspacing="3">
<tr>
<td><input type="text" name="q" size="20" /></td>
</tr>
<tr>
<td>
<input type="submit" name="site" value="site search" class="submit" />
<input type="submit" name="google" value="google search" class="submit" />
</td>
</tr>
</table>
</form>
What I want is that if you press the button, Google results will open in a new window. I think it should be done with JavaScript.
1 Answer