Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head><title>confirm box</title>
- <script>
- function getconfirm(){
- var val=confirm("do u want to continue");
- if(val==true){
- document.write("User wants to continue");
- }
- else{
- document.write("Need not continue");
- return false;
- }
- }
- </script>
- </head>
- <body>
- <button onclick="getconfirm()">continue</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement