<a href="b.htm" target="windowB">在windowB中打开b.htm页面</a>

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    <script language="javascript">
    function aa(){
    var xxx = window.open("test.htm","newwindow","");
    }
    </script>
    </head><body>
    <form id="form1" name="form1" method="post" action="">
    <input type="button" name="Submit"  onclick="aa();" value="按钮" />
      <label></label>
    </form></body>
    </html>test.htm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><body>
    test
    </body>
    </html>
      

  2.   

    设置一下window.open("","main","")
    就是把上面main部分的名称一样就可以了
      

  3.   

    我还没试过,不过看了二楼的代码,感觉应该可以
    csdn就是好,感谢二楼,感谢大家