Very handy comfirm action Javascript

If you are doing business logic website, there are many times you want to confirm if a user wants to delete something.

At least this is what happen to me. Here is a little javascript which you can add to OnClick() of your ASP button.

return confirm("are you sure?");

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s