模态窗口弹出两个的问题

supercctv 2003-07-10 10:17:25
模态窗口的部分代码
<form name="form1" method="post" action="insert.asp?up">
<table width="100%" border="0">
<tr>
<td> <div align="right">
<input type="file" name="file1" size="27">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="文件上传">
</div></td>
</tr>
</table>
</form>
表单提交后,会弹出一个新的窗口,有什么解决的办法,同时要保证up参数(.asp?up)能够正常传递。
...全文
83 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
CHARGING 2003-07-11
  • 打赏
  • 举报
回复
用IFRAME实现。
xuzuning 2003-07-11
  • 打赏
  • 举报
回复
模态窗口的新增代码
<script>
window.name = "myname";
</script>

模态窗口的部分代码——增加表单的target属性
<form name="form1" method="post" action="insert.asp?up" target="mywin">
<table width="100%" border="0">
<tr>
<td> <div align="right">
<input type="file" name="file1" size="27">
</div></td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="文件上传">
</div></td>
</tr>
</table>
</form>
fason 2003-07-10
  • 打赏
  • 举报
回复
把网页放在iframe里面
wssgwps 2003-07-10
  • 打赏
  • 举报
回复
对不起,打错了!
去掉 onsubmit=mm()
wssgwps 2003-07-10
  • 打赏
  • 举报
回复
不知道这样行不,试试吧!
<form name="form1" method="post" action="insert.asp?up" onsubmit=mm() target=frm1>
...
...
</form>
<iframe src='insert.asp' name=frm1 height=0 width=0></iframe>
supercctv 2003-07-10
  • 打赏
  • 举报
回复
不行,楼上的方法不行,
wssgwps 2003-07-10
  • 打赏
  • 举报
回复
Try:
<form name="form1" method="post" action="insert.asp?up" target=_self>

87,997

社区成员

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

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