天天看点

小东西,点击按钮防连击

ButtonSave.Attributes["onClick"] = "return doubleCheck()";

function doubleCheck(){

    if (window.document.readyState != null &&

            window.document.readyState != 'complete')

    {

        alert("正在处理,请等待!");

        return false;

    }

    else

    {

        return true;

    }

}