“Exemplo Sweetalert” Respostas de código

Sweet Alert 2 acionará -se ao confirmar

Swal.fire({  
  title: 'Do you want to save the changes?',  
  showDenyButton: true,  showCancelButton: true,  
  confirmButtonText: `Save`,  
  denyButtonText: `Don't save`,
}).then((result) => {  
	/* Read more about isConfirmed, isDenied below */  
    if (result.isConfirmed) {    
    	Swal.fire('Saved!', '', 'success')  
    } else if (result.isDenied) {    
    	Swal.fire('Changes are not saved', '', 'info')  
 	}
});
Orbit Tuner

Sweetalert

<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<script>swal("My title", "My description", "success");</script>
Code Cat

Switch Alert

swal({
	title: "Good job!",
	text: "You clicked the button!",
	icon: "success",
	button: "Aww yiss!"
});
Eager Eagle

exemplo de alerta doce

swal({
  title: "Good job!",
  text: "You clicked the button!",
  icon: "success",
  button: "Aww yiss!",
});
Thankful Tern

Exemplo Sweetalert

//import sweetalert
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>

//Alert
<script>swal("My title", "My description", "success");</script>
David Martínez L

Sweetalert JS Código completo

<script>
  // when window loades this alert pop ups 
        swal({
      text: "Hello world!",
           }     );
    </script>
Xerothermic Xenomorph

Respostas semelhantes a “Exemplo Sweetalert”

Perguntas semelhantes a “Exemplo Sweetalert”

Procure respostas de código populares por idioma

Procurar outros idiomas de código