Client-Side CommandButton property

The OnClientClick CommandButton property specifies a snippet of JavaScript code that executes when a command button is clicked.