Confirmation Message in onClick Event?

Hi :)!
I have been trying to display a confirm message in a onClick event in a grid application, but I found out that i cannot use sc_confirm()?

I need to display a confirmation message to ask it the user really want to perform that action and then perform different action depends on his/her choice.

Is there any way to do this?

You can add a button to perform the action, and your confirmation message is one of the properties. So this is the most easy way.

Thanks for the reply:).
But what if the action cannot be performed on button?
I mean, if i create a image link as button on each row, it is not considered as a button, is there any way to display a confirmation message in this case?