JavaScript Confirmation Alert before Deleting a Record


/ Published in: VB.NET
Save to your folder(s)

If you want to have a JavaScript confirmation alert to popup before executing the codebehind (e.g. asking the user if they really want to delete a record):


Copy this code and paste it in your HTML
  1. SomeButton.Attributes.Add("OnClick", "return(confirm('Are you sure you want to delete this record?'));")

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.