写两个 window.open()
 

解决方案 »

  1.   

    <script>
    var win1=window.open('a.htm','win1','width=200,height=100');
    win1.moveTo(10,100);
    var win2=window.open('b.htm','win2','width=200,height=100');
    win2.moveTo(250,10);
    </script>
      

  2.   

    同时弹出2个窗口 
    <script LANGUAGE="JavaScript"> 
    <!-- 
    function openwin() { 
    window.open ("page.html", "newwindow", "height=100, width=100, top=0,left=0,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no,status=no") 
    //写成一行 
    window.open ("page2.html", "newwindow2", "height=100, width=100, top=100,left=100,toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no,status=no") 
    //写成一行 

    //--> 
    </script> 
      为避免弹出的2个窗口覆盖,用top和left控制一下弹出的位置不要相互覆盖即可。最后用上面说过的四种方法调用即可。 
    注意:2个窗口的name(newwindows和newwindow2)不要相同,或者干脆全部为空。OK?