可以防止重复提交的问题

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

                                    {
                                        alert("正在处理,请稍候!");
                                        return false;
                                    }
                                  else
                                  { 
                                          return true;
                                   }
                               }

关键就是红色的那段
posted @ 2008-10-20 17:52  DreamTrue  阅读(382)  评论(4编辑  收藏  举报