form表单提交时,action怎么带参数


 1 <html>
 2 <title>form</title>
 3 <script type="text/javascript">
 4     function test(){
 5         var f = document.getElementsByTagName("form")[0];
 6         f.action=f.action+"id="+document.getElementById("input").value;
 7         alert(f.action);
 8     }
 9 </script>
10 <body>
11 <form action="ss.do?"  method="get">
12     <input type="text" id ="input"/>
13     <input type="button" value="提交" onClick="test()">
14 </form >
15 </body>
16 </html>

 转自百度知友---zhou2003737   http://zhidao.baidu.com/question/465627004.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM