Display Conformation box using JavaScript

In the Conformation Box, one box will appear and ask for conformation like “OK” and “Cancel” option.

<!DOCTYPE html><html><head></head><body><p> Display Confirmation Box using JavaScript</p><button onclick=”showConformationMessage()” id=btnClick>Click here to check your account is created or not </button><script type=”text/javascript”>function showConformationMessage(){var name = confirm(“Are you want to use the account”);if (name == true){alert(” Account created sucessfully”);}else{alert(“sorry,try again Your account is not created”);}}</script></body></html>

Leave a Reply

Your email address will not be published. Required fields are marked *