I'm doing a simple form validation which requires the user to answer all questions.. if a question is left blank, I need a new page to reload into the same window..
have tried, but not working:
if ((f1 == null) || (f2 == null) || (f3 == null) || (f4 == null) ) {
location.href="/error.html";
}
else { stuff }
and also
if ((f1 == null) || (f2 == null) || (f3 == null) || (f4 == null) ) {
document.open("/error.html");
}
else { stuff }
neither one seems to work, any help?
have tried, but not working:
if ((f1 == null) || (f2 == null) || (f3 == null) || (f4 == null) ) {
location.href="/error.html";
}
else { stuff }
and also
if ((f1 == null) || (f2 == null) || (f3 == null) || (f4 == null) ) {
document.open("/error.html");
}
else { stuff }
neither one seems to work, any help?