L'ho appena scritto, dovrebbe andare, vedi se ti va bene... l'unica cosa non ho messo il controllo per inserire solo numeri.codice:<html> <head> </head> <body> <script> function autoSlash(){ var cValue = document.data.campo.value.length; if(cValue == 2 || cValue == 5) document.data.campo.value += "/"; } </script> <form name="data"> <input name="campo" type="text" size="20" maxlength="10" onKeyDown="autoSlash();"> </form> </body> </html>
![]()