我又来了,真不好意思?一个关于关闭窗口的问题?

szmarx 2002-04-12 11:45:15
我有一个add.asp页,用于输入客户的资料,能不能在输入完按确定按钮后保存数据并关闭此页,在线等待!!!!!
...全文
29 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Andrawu 2002-04-12
  • 打赏
  • 举报
回复
如果是用asp,建议用RDS吧,这样对记录的操作很好的。
希偌 2002-04-12
  • 打赏
  • 举报
回复
<script>
window.opener=null;
window.close();
</script>
这个在非window.open的情况下需要>IE5.5版本才行得通!
希偌 2002-04-12
  • 打赏
  • 举报
回复
<script>
alert("保存成功");
window.close();
</script>
jsidiot 2002-04-12
  • 打赏
  • 举报
回复
add.asp
<form name=form action=save.asp>
</form>

save.asp
<%rs.addnew
rs.update

%>
<script>
window.opener=null;
window.close();
</script>
qisanyou 2002-04-12
  • 打赏
  • 举报
回复
可以.
确定按钮指向一个这样的页面
<html>

<head>
<meta http-equiv="refresh" content="3;url=index.asp">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<table border="0" width="450" align=center>
<tr>
<td width="100%"><b>数据成功保存,系统将三秒钟返回**页面。</b></td>
</tr>
</tr>
</table>
</body>

</html>

redcaff_l 2002-04-12
  • 打赏
  • 举报
回复
在add.asp的按钮中,onClick=window.close();
水墨画 2002-04-12
  • 打赏
  • 举报
回复
<script language='javascript'>
function go()
{
form1.submit();
windows.close();
}
....
<form name=form1>
<input type="submit" name="button1" onclick=go()>
</form>

87,994

社区成员

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

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