Search
 
SCRIPT & CODE EXAMPLE
 

HTML

Window yes no decision alert

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>JavaScript confirmation box</title>
    <script>
      // The function below will start the confirmation dialog
      function confirmAction() {
        let confirmAction = confirm("Are you sure to execute this action?");
        if (confirmAction) {
          alert("Action successfully executed");
        } else {
          alert("Action canceled");
        }
      }
    </script>
  </head>
  <body>
    <h1>Call the confirmation box</h1>
    <button onclick="confirmAction()">Delete</button>
  </body>
</html>
Comment

PREVIOUS NEXT
Code Example
Html :: ol text align 
Html :: twig captitalize 
Html :: how to add space between buttons 
Html :: how to add links 
Html :: HTML Table Padding & Spacing 
Html :: laser full form 
Html :: pass a method to composite jsf 
Html :: html viewport 
Html :: bootstrap Badges Contextual variations 
Html :: how to set domain name on localhost linux ubuntu xampp 
Html :: markdown dropdown 
Html :: bootstrap 4 button with icon 
Html :: html print today date 
Html :: bootstrap button link 
Html :: question mark html 
Html :: how to set a gif as a background image of a page 
Html :: how to make a link in html that opens in a new tab 
Html :: vuetify tooltip 
Html :: phoneto html 
Html :: select empty option 
Html :: predefine data list in input tag html 
Html :: Disable right click on your webpage 
Html :: how to make such that when user click link open on new tab 
Html :: Bootstrap 5.2 Starter Template | bootstrap starter template 
Html :: input number limit digits 
Html :: how to parse html data using beautifulsoup 
Html :: add a gif a background image in html 
Html :: ion-select placeholder 
Html :: html multiplications 
Html :: align table in middle of page 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =