JavaSctipt更新记录后关闭子窗口并刷新父窗口的

 
父窗口代码

<a href="#" 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(); }

posted @ 2008-07-14 18:55  洗碗心得  阅读(388)  评论(0编辑  收藏  举报