发生顺序:onsubmit -> submit
1.阻止表单提单:
<script><br />function submitFun(){<br /> //逻辑判断<br /> return true; //允许表单提交<br /> //逻辑判断<br /> return false;//不允许表单提交<br />}<br /></script>
2.onsubmit()与submit() :
<script><br />function fun()<br />{<br /> alert("form_submit");<br />}<br /></script>