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?
Contents
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
<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this product?');">Delete</a>
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.
I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I’m a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.