OnClientClick=”javascript:return confirm(‘Are you sure you want to Delete?’);”
This will display a pop up message giving yes or no as an option. If no is clicked, the click event is ignored, if yes is clicked, the click event is accepted.
Posted by
Rochelle CassarPosted on
June 19, 2013Posted under
JavaScript, Quick Tips, UncategorizedComments
Leave a commentOnClientClick=”javascript:return confirm(‘Are you sure you want to Delete?’);”
This will display a pop up message giving yes or no as an option. If no is clicked, the click event is ignored, if yes is clicked, the click event is accepted.