target=frameBA页面与b页面如何共同构成的?

解决方案 »

  1.   

    <html>
    <FRAMESET rows=\"50,*\" frameborder=\"NO\" border=\"0\" framespacing=\"0\">
    <FRAME NAME="A\" SRC=\"/businesscompass/manager?op=report_toolbar\" MARGINWIDTH=2 MARGINHEIGHT=2 SCROLLING=Auto>
    <FRAME NAME="B" SRC=\"=report_getdata&reportID=\"+reportID MARGINWIDTH=8 MARGINHEIGHT=4 SCROLLING=Auto>
    </FRAMESET>
    <form name="form1" action="/businesscompass/manager">
      <input type="hidden" name="reportID" value="Standard report.362834531">
      <input type="hidden" name="action" value="get">
      <input type="hidden" name="op" value="report_designfinish">
    </form>
    <script>
    function finish()
    {
       document.form1.submit();
    }
    </script>
    </html>
     
    我想在调用finish()函数的时候,通过提交form1的内容,来更新FRAME NAME="B"的内容,而不刷新A的内容。
      

  2.   

    可以用iframe很容易的实现
    c页面:
    <script>
    function aa()
    {
    self.frames["b"].location.href=NewUrl;
    }
    </script>
    <body>
    <iframe name=a src=a.htm></iframe>
    <iframe name=b src=b.htm></iframe>
    <form name=1 onsubmit=aa()>
    </form></body>
    如果要在
      

  3.   

    很简单.
    在form的target属性中指定B页所在的frame名字就就是了:<form name="form1" action="/businesscompass/manager" target=B>
      

  4.   

    脚本中就这样写
    <script>
    function finish()
    {
       document.form1.target="B"   //注意大小写哦
       document.form1.submit();
    }
    </script>