Advertisement
Hydrase

confirm

Jan 17th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <html>
  2. <head><title>confirm box</title>
  3. <script>
  4. function getconfirm(){
  5. var val=confirm("do u want to continue");
  6. if(val==true){
  7. document.write("User wants to continue");
  8. }
  9. else{
  10. document.write("Need not continue");
  11. return false;
  12. }
  13. }
  14. </script>
  15. </head>
  16. <body>
  17. <button onclick="getconfirm()">continue</button>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement