在B新开的B中:window.opener.top.frames.c.reload(true);

解决方案 »

  1.   

    上有误:
    window.opener.top.frames.c.location.reload(true);
      

  2.   

    window.opener.frames("c").location.reload
      

  3.   

    以上方法行不通。
    因为window是不通过window.open的方法打开的。而是form提交产生的。
    比如form action="B.html" target="_blank"所以,在这里连window.opener都是得不到的。
      

  4.   

    <form name=frm target="winName" method=post action="e.htm" onsubmit="subthis()">
    <input type=submit value=点我提交>
    </form>
    <script>
    function subthis(){
    window.open('about:blank','winName','....');
    }
    </script>在e.htm中:<button onclick="window.opener.top.frames.fraToolbar.location.reload(true);">  点我刷新opener的框架</button>当然是可以刷新框架fraToolbar的!
    你试了么?
      

  5.   

    <form name=frm target="_blank" method=post action="e.htm">
    <input type=submit value=点我提交>
    </form>
    <script>时同样可以在e.htm中访问到!
      

  6.   

    绝对正确的方法 但是要记住c中的form 提交方式 method=get 才行!在B中用self.opener.location.reload();
      

  7.   

    如果是showdialog()打开的呢????????
      

  8.   

    showdialog打开和open打开一样应用self.opener.location.reload();
      

  9.   

    提示self.opener.location为空或不是对象???????
      

  10.   

    showdialog()打开的不能这样用  只能是在C中根据其返回值定义刷新自身