posts - 40,  comments - 4,  trackbacks - 0
父窗口代码:
<a href="javascript:void(0)" onclick="window.open('child.html','child','width=400,height=300,left=200,top=200');">打开子窗口</a>


子窗口代码:
<script language="JavaScript" type="text/javascript"> <!-- function refreshParent() {     window.opener.location.href = window.opener.location.href;     if (window.opener.progressWindow)     {         window.opener.progressWindow.close();     }     window.close(); } //--> </script>  <a href="javascript:void(0)" onclick="refreshParent()">刷新父窗口并关闭当前窗口</a> 


点此查看示例
posted on 2007-12-05 15:04 larryjava 阅读(789) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: