gpt4 book ai didi

html - 在新窗口中打开 javascript 按钮

转载 作者:行者123 更新时间:2023-11-28 04:59:24 26 4
gpt4 key购买 nike

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

<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>

最佳答案

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

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

关于html - 在新窗口中打开 javascript 按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17816979/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com