<strong>第一种:</strong>用flag标识,下面的代码设置checkSubmitFlg标志: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="11315" class="copybut" id="copybut11315" onclick="doCopy('code11315')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code11315"> <br><script language="”javascript”"> <br><br>var checkSubmitFlg = false; <br><br>function checkSubmit(){ <br><br>if(checkSubmitFlg ==true){ return false; //当表单被提交过一次后checkSubmitFlg将变为true,根据判断将无法进行提交。 <br><br>} <br><br>checkSubmitFlg ==true; <br><br>return true; <br><br>} <br><br>< /script > <br><br>< form name=”form1” method=”post” onsubmit=”return checkSubmit();”> <br><br>………..< /form> <BR></script> </div> <br><strong>第二种:</strong>在onsubmit事件中设置,在第一次提交后使提交按钮失效,代码如下: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="3029" class="copybut" id="copybut3029" onclick="doCopy('code3029')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code3029"> <br><form action="%E2%80%9Dabout:blank%E2%80%9D" method="”post”" onsubmit="”getElementById(‘submitInput').disabled=true;return" true target="”_blank”"> <br><input type="”submit”" id="”submitInput”/"> <br> </form> <br> </div>