B.aspx
<input type="button" onclick="winClose()">function winClose(){
  window.opener.location.reload();
  window.opener=null;
  window.close();
}

解决方案 »

  1.   

    在父窗口中这样写   
    var refresh = window.showModalDialog('你的子窗口的地址','','dialogWidth:800px; dialogHeight:400px; center:yes; status:no; directories:yes; scroll:no; Resizable=no; help: no;')
    if(refresh=="Y")
    self.location.reload();
    然后在子窗口中关闭事件发生时加个返回值window.returnValue="Y";
    这样就完全满足你的要求了类似问题我已经靠这个原封不动的答案赚了好几十分了(狗狗偷笑ing....)
      

  2.   

    to zhaoxiaoyang(梅雪香@hisoft)
    父页面打开模态窗口用window.opener是无法定位父窗口的,不信可以试一下下....
      

  3.   

    a.aspx
    -------
       <script>
       strReturn=ShowModalDialog(........................)
       '在调用ShowModalDialog后面加上页面重载的代码
       window.location.reload()
       </script>b.aspx
    -------
       //点击按钮关闭窗口
       <input type="button" value="关闭" onclick="javascript:window.close()">