Sometimes is desirable to have a confirmation on a delete link, just incase the user has clicked the wrong item.
So when you have a html link like this :
<a href="go.php?id=123">Delete</a >
Simply change it to do the following :
<a href="go.php?id=123" onclick="return confirm('Are you sure you wish to delete this item?');">Delete</a>
Hope it save you some time.