INPUT type="button" value="生成凭证" onclick="window.open('warrant.aspx?id='ll'&name=""','','width=600px,height=400px')">

解决方案 »

  1.   

    INPUT type="button" value="生成凭证" onclick="window.open('warrant.aspx?參數名稱=參數值','','width=600px,height=400px')">
      

  2.   

    使用SESSION或者COOKIES嘛或者
    你要跳转的路径   +     ?(你设置的参数名)=你要传的值如:   http://sldfj/sl.html?id=3
    那么在新页面去的时候就去id的值就可以了,它的值为3
      

  3.   

    需要将="window.open('warrant.aspx','','width=600px,height=400px')"写成一个方法,如:
    function OpenWindow(para){
      window.open('warrant.aspx?' + para,'','width=600px,height=400px');
    }
    这个para就是参数。当然你也可以在方法中去获取需要的值,如某个域的值,然后组合成参数,提交到下一个页面。
      

  4.   

    INPUT type="button" value="生成凭证" onclick="window.open('warrant.aspx?Value=<%=Label1.Text%>','','width=600px,height=400px')">//传递标签lable1.Text的值到warrant.aspx页面中去
      

  5.   

    INPUT type="button" value="生成凭证" onclick="window.open('warrant.aspx?參數名稱=參數值','','width=600px,height=400px')">
      

  6.   

    INPUT type="button" value="生成凭证" onclick="window.open('warrant.aspx','','width=600px,height=400px')">
    加一个参数的话可以在warrant.aspx后添加?参数名=你要传递的参数值,
    如果有多个:warrant.aspx?a=1&b=2&c=3......