after checking all the functions and after clicking on submit button the browser should be turning into submitted.html but that does not happened and i don't know why? here is my code
<form method="get" onsubmit="return !!(checkForEmail() & checkForBlank()
&checkForGsm())" action="submitted.html">
checkForBlank function
function checkForBlank() {
var nom = document.getElementById("fname").value;
var prenom = document.getElementById("lname").value;
var errorMessage="";
if (nom == "") {
errorMessage += "Le champ nom est obligatoire.";
document.getElementById("lname").style.borderColor="red";
}
if (prenom == "") {
errorMessage += "\nLe Champ prenom est obligatoire.";
document.getElementById("fname").style.borderColor="red";
}
if (errorMessage != "") {
alert(errorMessage);
return false;
}
}
the others are similar.