I want to display alert message and then refresh the page.
But it take infinite loop of alert messages.
if(isValid){
alert("alert some text");
document.location.reload(true);
}
else {
.............
}
How can I do that with out infinite loop