在新窗口中打开javascript按钮

时间:2013-07-23 17:25:21

标签: html forms

如何在新窗口中打开所有这些按钮?

<form method="post" action="http://bloc.name/nnews.php">
<button type="submit" class="btn btn-large btn-inverse"  name="newbreforms">+ QOL & approval</button>
<button type="submit" class="btn btn-large btn-inverse" name="newbcement">+ Stability</button>
<button type="submit" class="btn btn-large btn-inverse" name="newbmilitary">+ 5K troops</button>
<button type="submit" class="btn btn-large btn-inverse" name="newbmoney">+ $600k</button>
<br />
<button class="btn btn-large btn-inverse" name="riotreforms" type="submit">+ Approval</button>
<button name="usaidtrain" class="btn btn-large btn-inverse" type="submit">+ Military training</button>
<button name="usaidair" class="btn btn-large btn-inverse" type="submit">+ Airforce</button>
<button name="usaidmoney" class="btn btn-large btn-inverse" type="submit">+ $400k</button>
</form>

2 个答案:

答案 0 :(得分:6)

target="_blank"添加到表单标记。

<form method="post" action="http://bloc.name/nnews.php" target="_blank">

答案 1 :(得分:0)

只需将target ='_ blank'添加到表单中即可。

<form target="_blank"></form>