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(); }

你可能感兴趣的:(java)