I am using Bootstrap SweetAlert and when it getting success I will show a success alert, at this time I want to reload browser while clicking on the ok button.
I am following this code:
bootstrap sweetalert
<script type="text/javascript"> swal("Good job!", "You clicked the button!", "success"); </script>
If you are using Bootstrap SweetAlert for display success and error message and reload your web page after click ok then follow this example code:
<script type="text/javascript"> swal({title: "Success!", text: "Your records has been saved.", type: "success"}, function(){ location.reload(); } ); </script>
Hope it will be helpful for you.
Question and answer is powered by AnsPress.io