防止重复提交的巧妙方法

在document.form1.submit();后加
document.body.innerHtml = "

1<center> Waiting...</center>

"; //当然这里的html代码就由你发挥了,还可把这段写成函数,这样维护就方便了!

这一处理,就让用户在等待提交时不会误以为没提交而重复按提交按钮!

Published At
Categories with Web编程
Tagged with
comments powered by Disqus