<SCRIPT language=JavaScript>
  function OnButton(key,type,parentid){
  if(type==1){
    var sURL="http://xx.jsp";
    sAttr = "width='+window.screen.availWidth+',height='+window.screen.availWidth+',screenx=0,screenY=0,resizable=yes,toolbar=yes,location=yes,menubar=yes,titlebar=yes,status=yes";
     sWindowName = "PopUp";
    popupwindow = window.open(sURL, sWindowName, sAttr);
    sURL="http;//yy.jsp";
    popupwindow = window.open(sURL, sWindowName, sAttr);   }
 }</SCRIPT>

解决方案 »

  1.   

    <form name='form1' method='post'>
    ...
    <input type='button' name='b' value='submit' onclick='dealwith()'>
    </form>
    <script language='javascript'>
    function dealwith(){
       window.open('页面1.jsp?ID1='+document.form1.ID1.value+'&selc_mon='+document.form1.selc_mon.value+'&selc_yer='+document.form1.selc_yer.value);
       window.open('页面2.jsp?ID2='+document.form1.ID2.value+'&selc_mon='+document.form1.selc_mon.value+'&selc_yer='+document.form1.selc_yer.value);
       return;
    }
    </script>
      

  2.   

    to wwwevil(-小虫):
    页面1和页面2的内容都取自b.asp,只是因为接收参数的不同而变为两个窗口这样可否做到?
      

  3.   

    可以的,在你的b.asp结束以前,打开两个带参数的窗口就可以了
      

  4.   

    用javascript的window.open("页面1.htm");就行了!
    然后在页面1里接收参数。
    同样的办法可以打开页面2,然后在页面2里接收参数,因为你的参数在同一个表单中,所以在2个里面都可以接收!