ASP JavaScript confirm()

[复制链接]
查看11 | 回复2 | 2010-5-14 10:32:56 | 显示全部楼层 |阅读模式
是asp.net吧.只需要在前台Button1上设置一个OnClientClick事件就可以了.如:后台:protected void Button1_Click(object sender, EventArgs e)
{
Response.Write("");
}
回复

使用道具 举报

千问 | 2010-5-14 10:32:56 | 显示全部楼层
将Button1的属性onClientClick设置为return confirm('确定要执行吗?')
回复

使用道具 举报

千问 | 2010-5-14 10:32:56 | 显示全部楼层
ok!give me the scores!呵呵
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行