如何用javascript防止连打(双击)
2007-01-05 19:57:03 来源:WEB开发网核心提示:javaScript代码:function doubleCheck(){ if (window.document.readyState != null && window.document.readyState != 'complete') { alert("正在处理,请等待!&quo
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
Tags:如何 javascript 防止
编辑录入:爽爽 [复制链接] [打 印]更多精彩
赞助商链接