Tuesday 2 August 2016

Confirm before DELETE the record by javascript

<script type="text/javascript">
function ConfirmDelete() {
if (confirm("Delete Account?"))
location.href='linktoaccountdeletion';
}
</script> echo '<input type="button" onclick="ConfirmDelete()" value="DELETE ACCOUNT">';

No comments:

Post a Comment