URL后面,加上,“?chooseCode=”+ escape(document.all("chooseCode").value)

解决方案 »

  1.   

    <input type="checkbox" name="checkbox" value="che$@$$@@ck@b,.ox" />
    <script type="text/javascript">
    var width = 600;
    var height = 420;
    var orgtreewin = window.open("noname1.html","newwindow","resizable=no,scrollbars=no,width="+width+",height="+height+",left="+(screen.availwidth-width)/2+",top="+(screen.availheight-height)/2); orgtreewin.document.all("dd").value=document.all("checkbox").value;</script>run
      

  2.   

    <html>
    <body>
    <input type=text name=dd id=dd value="">
    </body>
    </html>noname1.html内容如上
      

  3.   

    escape(val)
    我alert了一下,他只是把我那里的#换成了%其它没动,
    但是传过去的时候,我发现,input值里什么都没有!
      

  4.   

    对了,我用的是STRUTS的FORM的参数