可以防止重复提交的问题

 document.forms[0].onsubmit=function () {
                                   if (window.document.readyState != null &&
                                            window.document.readyState != 'complete')

                                    {
                                        alert("正在处理,请稍候!");
                                        return false;
                                    }
                                  else
                                  { 
                                          return true;
                                   }
                               }
posted @ 2009-12-11 15:41  tangself  阅读(172)  评论(0编辑  收藏  举报