Quando clicchi sul bottone, tutto il resto perde il focus.
Dovresti pertanto salvare l'ultimo campo che ha il focus solo tra quelli che ti interessano.
Prova con una cosa di questo tipo. Non so se e` quello che vuoi, pero`, perche` magari nonho capitoil problema (quello che sta dietro a quello che hai detto).
codice:NELLA HEAD: <script type="text/javascript"> var lastfocus; </script> NEL BODY: <form ...> <input type="text" ... onfocus="lastfocus=this;"> <input type="text" ... onfocus="lastfocus=this;"> <input type="text" ... onfocus="lastfocus=this;"> ... <input type="button" onclick="lastfocus.value+='quello che vuoi';" value="aggiungi"> ...

Rispondi quotando