confirm delete in html 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: How to show confirm message before delete using jquery
<button onclick="return confirm('Are you sure you want to Delete?');"
id="btnDelete">DELETE</button>