I have created a form to collect user details. Once the form is submitted, the page reloads. I am looking to show a success message after the page reloads.
<form name="myForm" class="contactus-template" method="post" onsubmit="return Formvalidation()">
</form>
function Formvalidation(){
var validate = validateForm();
if( validate == true ){
alert("success");
}
else{
alert("not success");
}
return validate;
}
The current script displays an alert before the page reloads. My goal is to show the alert after the reload function.