Confirm enables the user to confirm again whether to execute the operation to prevent accidental clicking

From , 5 Years ago, written in JavaScript, viewed 135 times.
URL https://pastebin.vip/view/cb953f6c
  1. <html>
  2. <head>
  3. <title>confirm</title>
  4. <script type="text/javascript">
  5.   function disp_confirm()
  6.   {
  7.     var r=confirm("请选择确认或者取消");
  8.     if (r==true)
  9.     {
  10.       alert("您选择了确认");
  11.     }
  12.     else
  13.     {
  14.       alert("您选择了取消");
  15.     }
  16.   }
  17.   </script>
  18. </head>
  19. <body>
  20. <input type="button" onClick="disp_confirm()" value="单击这里" />
  21. </body>
  22. </html>

Reply to "Confirm enables the user to confirm again whether to execute the operation to prevent accidental clicking"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website