How-to-show-a-Confirm-Message-vor-Delete

var result = confirm("Want to delete?");
if (result) {
    //Logic to delete the item
}
Silly Snake