父窗口中有数据列表,当对数据进行修改时弹出一子窗口,对数据进行修改,完毕保存后,当关闭子窗口
时,刷新父窗口数据
< script language = " javascript " >
function
closewin()
{
if
(event.clientX
>
document.body.clientWidth
&&
event.clientY
<
0
||
event.altKey)
//
检测窗口关闭事件
{
self.close();
window.opener.location.href
=
Form1.Hidden1.value;
//
不能用window.opener.location.reload(),否则会出提示框
}
}
</ script >
< body bgColor ="darkgray" MS_POSITIONING ="GridLayout" onbeforeunload ="closewin()" ; >
时,刷新父窗口数据
< script language = " javascript " >
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
![](https://i-blog.csdnimg.cn/blog_migrate/f0cd6c7f9e7ae96feae062cb48f670f0.gif)
</ script >
< body bgColor ="darkgray" MS_POSITIONING ="GridLayout" onbeforeunload ="closewin()" ; >