Success message after form submission
I am having a form to get the user details. Once form is submitted the page gets loaded. I want to display a success message after page loading.
function Formvalidation(){
var validate = validateForm();
if( validate == true ){
alert("success");
}
else{
alert("not success");
}
return validate;
}
This is script I am using now. This gives alert before page reload. I want to do this after that return function.