Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET ImageButton OnClientClick Property

ASP.NET ImageButton ValidationGroup Property


ImageButton Control ImageButton control


Definition and Usage

The OnClientClick property is used to set the client-side script to run when the ImageButton control is clicked.

In addition to the predefined script, the script specified in this property runs through the ImageButton's "OnClick" event.

Syntax

/>

property Description
func The client-side script that runs when the ImageButton is clicked.

Example

The following example runs two scripts when the ImageButton control is clicked:

ImageUrl="img.gif" runat="server" />


Demo Example »


ImageButton Control ImageButton control