confirm sweet alert
snippet in c

switch alert

user869

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

confirm sweet alert

user8916

swal("Are you sure?", {  dangerMode: true,  buttons: true,});