javascript confirm delete yes no

Today, We want to share with you javascript confirm delete yes no.In this post we will show you confirm in javascript with yes/no buttons w3schools, hear for javascript confirm yes no instead of ok/cancel we will give you demo and example for implement.In this post, we will learn about PHP MySQL Delete Record With Confirmation Popup Using Jquery Ajax with an example.

How to show a confirm message before delete?

javascript confirm yes no

Example 1: index.html

var deleted = confirm("Are you sure you want to deleted?");
if (deleted) {
  //deleted
} else {
  //don't deleted
}

Example 2:

var deleted = confirm("Want to delete product?");
if (deleted) {
    //Logic to delete the product
}

Example 3: Single Line

 Delete

I hope you get an idea about delete confirmation message text.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Leave a Comment