如题

解决方案 »

  1.   

    <form action="form_action.asp" method="get">
    <script type="text/javascript">
      function hello()
    {
      document.getElementById('result').innerHTML = 'ok';
      return false;
    }
    </script>
    <input type="submit" onclick="return hello()"/></form>
    <p id="result"></p>亲测结果: 先执行hello(); 依照hello()返回值如果为false,则停止
      

  2.   

    肯定是先客户端事件吧。再根据返回结果是否Submit的吧。
      

  3.   

    先处理时间,例如提交钱验证输入框的数据,return false则不会提交
      

  4.   

    如果你的提交按钮用submit的话 return false是不能阻止表单提交的  要阻止表单提交 最好是button按钮  手动submit()
      

  5.   

    按钮的onclick和form的onsubmit,自己写个测试便知。
      

  6.   

    我知道楼主的意思,
    是要在提交钱的 onclick事件,默认添加一个事件。先执行,在做后面的onclick事件。