onsubmit=chk()chk()
{
document.all.submit.enabled=false;
}
提交完成后再转一下URL或者恢复SUBMIT按纽

解决方案 »

  1.   

    onsubmit=chk()chk()
    {
    document.all.submit.enabled=false;
    }
    提交完成后再转一下URL或者恢复SUBMIT按纽
      

  2.   

    错了是
    disabled =true;你看CSDN这个不就是这样的吗
      

  3.   

    最好是在服务器端也加入验证。<script>    
    window.bln=true;
    function check(obj)
    {
        if (document.form1.gb_name.value=="") 
        {
            alert("请填写姓名!");     
            document.form1.gb_name.focus();
            return;
        }
    if(bln)form1.submit();
    window.bln=false;
    }
    </script>
    <form name="form1" action="tmp.asp" target="in">
    <input type="text" name="gb_name">
    <input type="button" onmouseup="check(this)" value="Submit">
    <iframe name="in"></iframe>