1swal({title: "Good job", text: "You clicked the button!", type: "success"},
2 function(){
3 location.reload();
4 }
5);
1swal({title: "Good job", text: "You clicked the button!", type:
2"success"}).then(function(){
3 location.reload();
4 }
5);
1swal({
2 title: "Good job",
3 text: "You clicked the button!",
4 icon: "success",
5 buttons: [
6 'NO',
7 'YES'
8 ],
9}).then(function(isConfirm) {
10 if (isConfirm) {
11 location.reload();
12 } else {
13 //if no clicked => do something else
14 }
15});