如果通过按钮打开指定的网页啊?

yfdk 2003-09-29 11:59:41
如题,但这个按钮不是submit,不能在form中设置action=“”某个网页来打开。
...全文
55 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
紫郢剑侠 2003-09-29
  • 打赏
  • 举报
回复
<input type=button value=open onclick="window.open('aa.htm','_blank')">
arcow 2003-09-29
  • 打赏
  • 举报
回复
<input type=button onclick=window.open("url.htm")>
hrong 2003-09-29
  • 打赏
  • 举报
回复
<input type=button value=ok onclick="window.open('aa.htm','_blank')">
xiaobird1 2003-09-29
  • 打赏
  • 举报
回复
<form name=form1 method=post>
<input name=t1>
<input type=button value=next1 name=b1 onclick="form1.action='1.asp';form1.submit()">
<input type=button value=next2 name=b2 onclick="form1.action='2.asp';form1.submit()">
</form>

rongwenfeng 2003-09-29
  • 打赏
  • 举报
回复
<script lanaguage=javascript>
function formSubmit()
{
form1.submit();
}
</script>
<form name=form1 method=post action="url.html">
<input type=button onclick="formSubmit()">
</form>

87,901

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧