a href confirm javascript
snippet in javascript

a href confirm javascript

user2771

<a href="delete.php?id=22" onclick="return confirm('Are you sure?')">Link</a>