Pessaol sou iniciante nessa linguagem... e gostaria de sebar o que estou fazendo de errado nesse codigo...... obs: O script não funciona...... <html>
<head>
<title> PROGRAMA DE AVALIAÇÃO </title>
</head>
<head>
<script language="JavaScript">
function validar(){
if (document.formAir.email.value=="")){
window.alert('É Necessario o Preenchimento do E-mail!!!');
document.formAir.email.focus();
return false;
}
if (document.formAir.name.value==""){
window.alert('É Necessario o Preenchimento do Nome!!!');
document.formAir.name.focus();
return false;
}
return true;
}
</script>
</head>
<body>
<center><h2> QUESTIONÁRIO DE AVALIAÇÃO </h2></center>
<form name=formAir action="validateForm.php" method="post" onsubmit="return validar();">
<h4>Informe seu Nome:</h4>
<input type="text" name="name" size="70">
<h4>E-mail:</h4>
<input type="text" name="email" size="50">
<h3>OBJETIVO</h3>
1 - Gostou do site?
<br><br>
<input type="radio" name="questionOne" value="3"> Otimo
<input type="radio" name="questionOne" value="2"> Bom
<input type="radio" name="questionOne" value="1"> Regular
<input type="radio" name="questionOne" value="0"> Ruim
<br><br>
<button type="submit" > Enviar Respostas </button>
</form>
</body>
</html>