how to use delete confirm in javascript code example
Example 1: comfirm before delete
<a href="#" title="delete" class="delete" onclick="return confirm('Are you sure you want to delete this item')">Delete</a>
Example 2: are you sure you want to proceed click ok button javascript code
var result = confirm("Want to delete?");
if (result) {
//Logic to delete the item
}