Perchè questo codice restituisce errore:
restituisce errore sucodice:<html> <head> <title>Dati del cliente</title> <script language="JavaScript"> <!-- function submitIt(theform) { if (theform.nome.value == "") { alert("Atencion: falta tu nombre..."); theform.nome.focus(); return false; } if (theform.cognome.value == "") { alert("Atencion: falta tu apellido..."); theform.cognome.focus(); return false; } if ((theform.email.value =="")|| (theform.email.value.indexOf("@") == -1) || (theform.email.value.indexOf(".") == -1) || (theform.email.value.length < 7)) { alert("Atencion: falta tu email..."); theform.email.focus(); return false; } } --> </script> </head> <body OnLoad="Javascript:document.frm_cliente.nome.focus();"> <form ACTION="controlla.asp" name="frm_cliente" method="post" onSubmit="return submitIt(this)">
è nullo o non è un oggetto...codice:document.frm_cliente.nome
![]()