现在有以下几个窗口的一次展现过程A->B->C->B->AB->C->B这个过程中,B到达C,然后C操作后,提交参数到B页面,这个时候我碰到的问题是,如何不打开新的B而是回到B->C这个之前的B页面,并且B中页面更新,获取到新参数,而不是新打开C->B这里的B页面,因为这样的话就无法实现关闭B的时候,reload页面A谢谢大家帮忙了        

解决方案 »

  1.   

    A.html
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
        <form id="form1" runat="server">
    <input id="cs" name="1" type="text" /><input name="b" onclick="window.open('B.aspx','','')" type="button" value="open" />
       <label id="lb" ></label>
        </form>
    </body>
    </html>B.html
    <html>
      <head>
          <script language = "javascript">
              function fn() {
            window.opener.document.getElementById('cs').value = window.document.getElementById('username').value;
            window.opener.document.getElementById('lb').innerHTML = window.document.getElementById('username').value;
            window.close()
        }
         </script>
          
       </head>
       <body>
           <input type="text" name="username" id="username">
    <input name="but" type="button" onclick="fn()" value="close" />
       </body>
    <html>
    楼主结贴 
      

  2.   

    C中操作数据后,reload下B就可以了
      

  3.   

    window.parent.reload();
    不知道你是不是这个意思
      

  4.   


    我在C中action="B.jsp"  提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面  而不是重新开一个B页面呢  
      

  5.   


    不好意思  我是引用你的 引错了  
    我的意思是
    我在C中action="B.jsp"  提交参数到B页面后reload原来的B页面,可是不会把提交的参数reload过来,因为这个reload的动作总是在提交之前动作,相当于没有reload。现在就是有没有可以提交的时候直接action到父级页面  而不是重新开一个B页面呢