62,046
社区成员
发帖
与我相关
我的任务
分享
前台:
function dochecks(){
var txtname=document.getElementById("txtname").value
if(txtname==""){
alert("主题不能为空");
return false;
}else{
return ture;
}
}
<asp:Button ID="Button1" runat="server" Text="发送" Style="cursor: hand;" OnClick="Button1_Click" OnClientClick="return dochecks();" />
程序已经执行了 “主题不能不能为空” return false ,但后台还是执行OnClick 事件
页面中运用了jquery ,swfupdaload.js 大量js文件