在add.asp的按钮中,onClick=window.close();
解决方案 »
- 求JS怎么获取Iframe里面的元素
- 重构一下下面代码, 提出一个方法
- 实现停止,启动,按钮之间的状态控制
- 关于模态对话框的奇怪的问题
- 怎样改变Radio button里面那个小圆圈的颜色而不影响外面的颜色。
- 怎样在对话框中执行父窗口的函数
- 急救,isNaN函数是做什么用的?在线等。
- 用JAVASCRIPT写的菜单为什么会沉在输入框后面。
- 关于如何在A窗口中关闭在A窗口中弹出的b窗口??请求帮助。。急。。。。。。
- EasyUI的combobox控件使用onchange事件之后,输入文本时下拉列表框检索功能不再可用。
- 求助:怎么设置时间延迟呢,怎么不可以实现象csdn里”论坛列表“的东西呢??
- 高分求弹出菜单教程,要求源码结构清晰,效果较好.想要多少分,都可以给你加上....
确定按钮指向一个这样的页面
<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>
<form name=form action=save.asp>
</form>save.asp
<%rs.addnew
rs.update%>
<script>
window.opener=null;
window.close();
</script>
alert("保存成功");
window.close();
</script>
window.opener=null;
window.close();
</script>
这个在非window.open的情况下需要>IE5.5版本才行得通!
function go()
{
form1.submit();
windows.close();
}
....
<form name=form1>
<input type="submit" name="button1" onclick=go()>
</form>