swal refresh page ok code example
Example 1: location.reload sweetalert
swal({title: "Good job", text: "You clicked the button!", type: "success"},
function(){
location.reload();
}
);
Example 2: location.reload sweetalert
swal({title: "Good job", text: "You clicked the button!", type:
"success"}).then(function(){
location.reload();
}
);