html中<a>标签点击打开新窗口&表单提交打开新页面
作者:互联网
- 为
<a></a>
添加属性target="_blank|_self|_parent|_top|framename"
<a class="thumbnail" target="_blank|_self|_parent|_top|framename">
- 为表单添加属性
target="_blank"
<form method="get" id="form" target="_blank">
<div class="input-group" style="margin-top: 150px;margin-left: 260px;">
<span class="input-group-btn">
<button id="baidu" class="btn btn-primary" type="submit">百度一下</button>
</span>
<input id="search" type="text" class="form-control" placeholder="Search for..." name="wd">
</div><!-- /input-group -->
</form>
标签:target,新页面,表单,添加,新窗口,blank,打开,属性 来源: https://www.cnblogs.com/java-six/p/15870574.html