<script language="javascript">
var timer
var privatemsg
function IfWindowClosed()
{
if (privatemsg.closed == true)
{
window.clearInterval(timer)
alert("窗口关闭");
}
}
</script>
<script language="javascript">
function view()
{
url="win.htm";
privatemsg = window.open(url,"AE","WIDTH=400,HEIGHT=150");
timer=window.setInterval("IfWindowClosed()",1);
}
</script>
function view()
{
url="win.htm";
privatemsg = window.open(url,"AE","WIDTH=400,HEIGHT=150");
timer=window.setInterval("IfWindowClosed()",1);
}
</script>
<a href="javascript:view()">去吧 !</a>
本文转自 韬光星夜 51CTO博客,原文链接:http://blog.51cto.com/xfqxj/477124,如需转载请自行联系原作者