How to get button name? (转载)# DotNet - 窗口里的风景
i*p
1 楼
【 以下文字转载自 BuildingWeb 讨论区 】
发信人: isup (No), 信区: BuildingWeb
标 题: How to get button name?
发信站: BBS 未名空间站 (Thu May 31 23:09:24 2007)
There are several buttons in one page. It always calls the fuction no matter
clicking any button. Inside this function, how can we know which button is
clicked? In other word, how can we get value "b1" or "b2"?
The buttons in the HTML are defined like these.
发信人: isup (No), 信区: BuildingWeb
标 题: How to get button name?
发信站: BBS 未名空间站 (Thu May 31 23:09:24 2007)
There are several buttons in one page. It always calls the fuction no matter
clicking any button. Inside this function, how can we know which button is
clicked? In other word, how can we get value "b1" or "b2"?
The buttons in the HTML are defined like these.