Search
 
SCRIPT & CODE EXAMPLE
 

HTML

sweetalert2 cdn

<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.all.min.js"></script>
Comment

How to install sweetalert2 with CDN?

<head>
   <!-- limonte-sweetalert2 -->
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.1.9/sweetalert2.min.css" integrity="sha512-cyIcYOviYhF0bHIhzXWJQ/7xnaBuIIOecYoPZBgJHQKFPo+TOBA+BY1EnTpmM8yKDU4ZdI3UGccNGCEUdfbBqw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
   <script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/11.1.9/sweetalert2.all.min.js" integrity="sha512-IZ95TbsPTDl3eT5GwqTJH/14xZ2feLEGJRbII6bRKtE/HC6x3N4cHye7yyikadgAsuiddCY2+6gMntpVHL1gHw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>

<!-- You have to put the sweetalert2 script inside the body tag  -->
<body>
  <script>
    Swal.fire({
      title: 'Press CTRL + P to Print !!!',
      showClass: {
        popup: 'animate__animated animate__fadeInDown'
      },
      hideClass: {
        popup: 'animate__animated animate__fadeOutUp'
      }
    })
  </script>
</body>
Comment

PREVIOUS NEXT
Code Example
Html :: regex href html pattern 
Html :: file input only images 
Html :: bootstrap css cdn 
Html :: flutter build web html renderer 
Html :: HP cmd get computer serial number 
Html :: display html jupyter 
Html :: href email in html 
Html :: how to run vscode as root 
Html :: input acepta solo imagnes 
Html :: tabulation html 
Html :: html filter file upload 
Html :: a href email 
Html :: add favicon html 
Html :: html file input file filter 
Html :: bootstrap footer bottom of page 
Html :: how to center link in html 
Html :: js get mouse position canvas 
Html :: open the file upload dialogue box onclick the image 
Html :: password field odoo 
Html :: tailwind cdn v3 
Html :: make a basic html page 
Html :: buton html href 
Html :: bootstrap vertical align 
Html :: a tah 
Html :: video tag html 
Html :: span limit text length 
Html :: iframe 100 responsive 
Html :: void javascript 
Html :: disable a tag 
Html :: ion-datetime change event 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =