Wednesday, 21 January 2015

Validation of Delete Confirmation Message in JavaScript

<script type="text/javascript">

        function DeleteConfirmation(linkbutton)
           {
            if (linkbutton.innerText == "Delete")
          {
                if (confirm('Are you sure you want to Delete this Record'))
                 {
                    return true;
                }
                else
          {
                    return false;
                }
            }
        }

 </script>

No comments:

Post a Comment