js实现表单的提交


<form action="" method="post" name="form">

   <tr>
            <td><input type="button" value="跳转到a.jsp" οnclick="a()"      class="botton"/></td>
            <td><input type="button" value="跳转到b.jsp" οnclick="b()"    class="botton"/></td>
        </tr>

</form>

 

<script type="text/javascript">
    //把表单的action改为a.jsp
    function Two() {
        document.form.action = "a.jsp";
        document.form.submit();
    }
    //把表单的action改为b.jsp
    function Three() {
        document.form.action = "b.jsp";
        document.form.submit();
    }
</script>


免责声明!

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



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