ho il seguente form con abbinata la funzione di controllo:
<script>
function checklogin(m){
var un;
var pw;
pw=document.form1.pw.value;
un=document.form1.user.value;
if(pw.length==0||un.length==0){
if(m=="1") alert("Inserire nome utente e password");
else alert("Fill both username and password");
document.form1.user.focus();
return false;
}
else
return true;
}
</script>
<form action="pippo.asp" target=new method=post name=form1 onsubmit="return checklogin('1');">
<tr>
<td height=3></td>
</tr>
<tr>
<td>Codice cliente</td>
</tr>
<tr>
<td align=center>
<input type=text class=myinput name=user maxlength=6 size=15>
</td>
</tr>
<tr>
<td>Password</td>
</tr>
<tr>
<td align=center><input type=password size=21 name=pw></td>
</tr>
<tr>
<td><input type=submit class=bottone value=Entra</td>
</tr>
</form>
PROBLEMA:
vorrei che una volta cliccato sul bottone ENTRA si apra la nuova finestra con il sito che viene chiamato e allo stesso tempo mi si resetti il campo password .. ho provato con DOCUMENT.FORM1.RESET() ma resettandomi i campi durante il link il sito che si apre non riesce a leggere la password!
![]()
![]()
GRAZIE!