What I Use To Confirm Deletes
Here's the code I use to make the use confirm the decision to delete something:

In the head:

<script>
function confirmDelete(delUrl) {
  if (confirm("Are you sure you want to delete")) {
    document.location = delUrl;
  }
}
</script>

The Delete Link:

<a href="delete_this.cfm?ID=<cfoutput>#del.ID#</cfoutput>" onClick="return confirm('Are you sure you want to delete?')">DELETE THIS</a>


Archives