ASP.NET Button OnClientClick Property
Button Control
Definition and Usage
The OnClientClick property is used to set a client-side script that runs when the Button control is clicked.
In addition to predefined scripts, the script specified in this property runs through the button's "OnClick" event.
Syntax
/> The following example runs two scripts when the Button control is clicked: Demo Example »
property
Description
OnClientClick
The client-side script that runs when the button is clicked.
Example
Example
Button Control