come si fa a sapere quando il campo è stato inserito?DOPO AVER INSERITO IL CAMPO "LOGIN"![]()
![]()
non so io a priori se un utente si chiama Mario o Mariolina.....
per il settare il focus si può fare:
<form name="nome_form" action="...">
<input type="text" name="login" id="login" />
<input type="password" name="pwd" id="pwd" />
<input type="submit" value="entra" />
</form>
Soluzione 1:
document.nome_form.pwd.focus();
Soluzione 2:
document.getElementById('pwd').focus();
il tutto stà a vedere quando eseguire questo comando....