I'd like to share with you this snip:

Delete Confirm
<a href="deletelink" onclick="return confirm('Are you sure?')">Delete</a>
Unicorn
PHP