I need to reload the page after the OK button is clicked on the Alert box. I am using the following code for it
alert(\"Successful Message\"); window.locati
Use javascript confirm() method instead of alert. It returns true if the user clicked ok button and returns false when user clicked on cancel button. Sample code will look like this :
confirm()
true
false
if(confirm('Successful Message')){ window.location.reload(); }