Web Programming

Confirmation Popup When Open Link / Click Button in HTML/PHP

Simply MODIFY This below Code, it should work directly in your html/php page :

 

<a href=”delete.php” onclick=”return confirmAction()”>Click Here to Delete</a>

<script>
function confirmAction(){
var confirmed = confirm(“Are you sure want to delete this entry?.”);
return confirmed;
}
</script>

Leave a Reply