Sem mais delongas, o código -chave é o seguinte:
--- Restaurar o conteúdo Iniciar --- <Html> <head> <cript> window.onload = function () {var form = document.getElementsByTagName ('form') [0]; var txt = form.Elements ['txt1']; var txt1 = form.Elements ['txt2']; txt.onKeyUp = function () {if (this.Value.Length == this.maxLength) {for (var i = 0; i <form.Elements.Length; i ++) {if (form.Elements [i] == this) {form.Elements [i+1] .focus (); }}}}}}}}}}}}}}}}}}} </script> </ad Head> <body> <form> <input type = "text" name = "txt1" maxlength = "5"> <input type = "text" = "txt2" maxlengthing = "4"> termina ---O exposto acima é o código de comutação automático do formulário JavaScript, introduzido pelo editor. Espero que seja útil para todos!