Use a javascript confirm box to ask the user if they want to delete
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
script>
}
Another way
a href="http://www.blogger.com/delete.page?id=1" onclick="return confirm('Are you sure you want to delete?')">Delete
No comments:
Post a Comment