JavaScript confirmar eliminar
<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
Talented Thrush
<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
<a href="url_to_delete" onclick="return confirm('Are you sure you want to delete this item?');">Delete</a>
<a href="#" title="delete" class="delete" onclick="return confirm('Are you sure you want to delete this item')">Delete</a>
<button onclick="return confirm('Are you sure you want to Delete?');"
id="btnDelete">DELETE</button>
var result = confirm("Want to delete?");
if (result) {
//Logic to delete the item
}