Ciao a tutti, ho un problemino...ho una form di login (user e pass) dovrei fare il submit con un link e allo stesso tempo fare un check se i campi sono stati compilati.
Codice per il check
<SCRIPT language="JavaScript">
function checkLogin() {
mod = document.login;
if (mod.username.value.length == 0) {alert("Inserire il nome utente"); mod.username.focus(); return(false);}
if (mod.password.value.length == 0) {alert("Inserire la password"); mod.password.focus(); return(false);}
return(true);
}
</script>
Link
Accedi>>
Come devo fare?
Grazie mille