location.reload sweetalert

145

location.reload sweetalert -

swal({title: "Good job", text: "You clicked the button!", type: "success"},
   function(){ 
       location.reload();
   }
);

location.reload sweetalert -

swal({title: "Good job", text: "You clicked the button!", type: 
"success"}).then(function(){ 
   location.reload();
   }
);

Comments

Submit
0 Comments