Hello I have a code using sweetalert
swal("Good job!", "You clicked the button!", "success")
this code will pop-up a message and has a button okay, what I like to do is I want to refresh the page after I click the okay button.
Can I do that?
You can try this, its work for me..
swal({title: "Good job", text: "You clicked the button!", type: "success"},
function(){
location.reload();
}
);