关闭父窗口刷新子窗口

比如我访问index.html页面,其中一个功能模块需要弹出(新打开)other.html,勾选某些数据,勾选完成后,关闭other.html,并且index.html随着关闭other.html事件而刷新。

父窗口-index.html

 <html>  
 <head>  
  <title>index.htmll</title>  
  <meta name="Generator" content="EditPlus">  
  <meta name="Author" content="">  
  <meta name="Keywords" content="">  
  <meta name="Description" content="">  
    <SCRIPT LANGUAGE="JavaScript">  
    <!--   
    function clicks(){   
     window.open("other.html");   
    }   
    //-->  
    </SCRIPT>  
 </head>  
 <body>  
 <a  onClick="clicks();" target="_blank">选择数据</a>  
 </body>  
</html>  

子窗口-other.html

 <html>  
 <head>  
  <title>子窗口</title>  
  <meta name="Generator" content="EditPlus">  
  <meta name="Author" content="">  
  <meta name="Keywords" content="">  
  <meta name="Description" content="">  
<SCRIPT LANGUAGE="JavaScript">  
<!--   
function Close()   
{
  window.opener.location.href="index.html";
}
//-->  
</script>  
 </head>  
 <body>  
 <a href="javascript:Close();">关闭当前子窗口,打开父窗口</a>  
 </body>  
</html>