Confirm Box On Click Of Delete Button

 <script>   
    function confirmationDelete(anchor)
{
   var conf = confirm('Are you sure want to delete this record?');
   if(conf)
      window.location=anchor.attr("href");
}
</script>




<a onclick='javascript:confirmationDelete($(this));return false;' class="btn btn-danger" href="deleteuser.php?att_user_id=<?=$att_user_id ?>">
Previous
Next Post »