电脑技术学习

如何用javascript防止连打(双击)

dn001

javaScript代码:
function doubleCheck(){
if (window.document.readyState != null &&
window.document.readyState != 'complete')
{
alert("正在处理,请等待!");
return false;
}
else
{
MessageClear();
return true;
}
}
在C#代码中:
this.backButton.Attributes["onClick"] = "return doubleCheck()";

http://www.cnblogs.com/dahuzizyd/archive/2007/01/04/javascript_double_click.html