How to create a message box with "Yes", "No" choices and a DialogResult in PHP?
PHP: Show yes/no confirmation dialog
<a href="http://stackoverflow.com"
onclick="return confirm('Are you sure?');">My Link</a>
Example 2
<script>
function confirmDelete(delUrl) {
if (confirm("Are you sure you want to delete")) {
document.location = delUrl;
}
}
</script>
<a href="javascript:confirmDelete('delete.page?id=1')">Delete</a>