常用JavaScript功能汇总

1,JavaScript设置链接不可用:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "", "<script language='javascript'>document.getElementById('newadd').href='#';document.getElementById('newadd').disabled = true;document.getElementById('newadd').onclick=function(){return false;};</script>", false);

你可能感兴趣的:(JavaScript)