window.opener.location.reload(true);reload() default is reload(false),it will reload the page from the cache;you should defined true to force it reload from the server @_@

解决方案 »

  1.   

    用window.opener.location.reload(true);还是不行啊!我是在子窗口中(弹出窗口)刷新父窗口(并自动关闭子窗口)。不知道跟这个有没有关系?
      

  2.   

    window.opener.location.reload(true); //true代表从服务器重新获取,false为从缓存中获取,默认为false
    或window.opener.location.href = window.opener.location.href;
    或window.operner.location.replace(location);
      

  3.   

    应该是
    window.opener.location.reload(true); //true代表从服务器重新获取,false为从缓存中获取,默认为false
    或window.opener.location.href = window.opener.location.href;
    或window.operner.location.replace(window.opener.location);
      

  4.   

    因为父窗包含历史信息要是.net页面,刷新时还会弹出已关闭的窗口要想不出现重试或已关闭的弹出窗口,只有重新加载该页面
    即:
    window.opener.location.href = window.opener.location.href
      

  5.   

    To: DeluxWorld(曾经的你) &  wen1818(冷月孤心)为什么刷新父窗口会再次弹出子窗口?如果子窗口是在点击父窗口中的一个按钮或者连接弹出来,而不是在页面刚调用的时候就弹出的话,那刷新父窗口时就不会弹出子窗口吧?
      

  6.   

    弹出窗口不是直接弹出的,是在父窗口点一个按钮弹出的,然后点弹出窗口的一个按钮,执行一段程序,自己关闭弹出窗口并刷新父窗口。window.operner.location.replace(window.opener.location);
    这个也试了,还是一样。要点重试
      

  7.   

    我理解错了,看这样行不行:
    子页面 child.html
    <input type='button' value='关闭子窗口' onclick='close_win()'>
    <script language='JavaScript'>
      function close_win(){
          window.close();
          window.opener.location.reload();
      }
    </script>
    父页面:
    <input type="button" value="弹出子窗口" onclick="window.open('child.html','','width=420,height=330')"><br><br>
    看能否刷新?<input type='text' value=''>