js confirm delete code example
Example 1: confirm on delete
<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
Example 2: comfirm before delete
<a href="#" title="delete" class="delete" onclick="return confirm('Are you sure you want to delete this item')">Delete</a>
Example 3: How to show confirm message before delete using jquery
<button onclick="return confirm('Are you sure you want to Delete?');"
id="btnDelete">DELETE</button>