Answers for "how to create a confirm function to delete html"

CSS
2

confirm on delete

<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
Posted by: Guest on February-08-2021
1

javascript confirm delete

var result = confirm("Want to delete?");
if (result) {
    //Logic to delete the item
}
Posted by: Guest on October-16-2020

Browse Popular Code Answers by Language