onclick="window.open('b.jsp?num=form2.selectbox.value','','width=600,height=400')"

解决方案 »

  1.   

    'b.jsp?num=' + form2.selectbox.value
      

  2.   

    <form name="form2">
    <select name=select>
    <option value="ppp">ttt</option>
    </select>
    <input type="text" name="name"><input type="button" value="select" onclick="window.open('b.jsp?num='+form2.select.value,'','width=600,height=400')">
    </FORM>
      

  3.   

    <form name="form2">
    <select name=select>
    <option value="ppp">ttt</option>
    </select>
    <input type="text" name="name"><input type="button" value="select" onclick="window.open('b.jsp?num=' + form2.select.value,'','','width=600,height=400')">
    </FORM>
      

  4.   

    onclick="window.open('b.jsp?num=form2.selectbox.value','','width=600,height=400')"传递的数值是form2.selectbox.value'
    onclick="window.open('b.jsp?num=' + form2.select.value,'','','width=600,height=400')">传递的数值是ppp
    都可以,不过传递的数值改变了,