“Contoh Sweetalert” Kode Jawaban

Sweet Alert 2 melakukan tindakan di konfirmasi

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

Sakelar Peringatan

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

Contoh peringatan manis

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

Contoh 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 kode lengkap

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

Jawaban yang mirip dengan “Contoh Sweetalert”

Pertanyaan yang mirip dengan “Contoh Sweetalert”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya