你在 window.opener.location.href=.....
后面再加一句window.focus()呢?
不行的话,你用 window.showModelessDialog("b.html")打开b.html吧

解决方案 »

  1.   

    <body onblur="this.focus()">
      

  2.   

    假如以上的方法还不行,试试下面的:在a.html文件中的加入
    <script language=javascript>
    <!--
    function window_onload() {
     if (b窗口存在) {
       b窗口.focus();
     }
    }
    //-->
    </script>
    <body onload="return window_onload();">这样可能会闪一下。
      

  3.   

    window.opener.location.href = window.opener.location.href
    改成
    window.opener.location.reload();
      

  4.   

    b窗口:
    <html>
    <head><title>1.htm</title></head>
    <body onblur="this.focus()">
    <script>
    function re(){window.opener.href=window.opener.href;;
    }
    </script>
    <input type=button onclick=re() value="refresh opener">
    </body>
    </html>
      

  5.   


    sorry,modify it~~:window.opener.href=window.opener.href;;---->改为window.opener.location.relload();