In this article i will show you how how you can show user Window confirm() Method method to show an alert message for confirmation of the user in your web application using javascript.
<script> function ConfirmFunction() { var status = confirm("Please press Ok to confirm you selection."); if (status == true) { alert("You clicked OK"); } else { alert("You pressed Cancel!"); } } </script> |
<input type="button" value="Click
For Confirm Button"
onclick="javascript: ConfirmFunction();"/> |
0 comments:
Please let me know your view