Are you looking at "Confirm" kind of functionality then it is as simple as writing "return Confirm('Your Confirmation Message')" against the event in markup.
But if you are looking for something more customizable (to your needs) then may be you should look at
ConfirmButton Extender from Ajax Control Toolkit or go through this
CP article.