Ohne weiteres ist der Schlüsselcode wie folgt:
--- Inhaltsstart wiederherstellen --- <html> <kopf> <skripts> Fenster.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.elemente [i] == this) {Form.Leement [i+1] .focus (); }}}}}}}}}}}}}}}}} </script> </head> <body> <Formular> <Eingabe type = "text" name = "txt1" maxLength = "5"> <Eingabe-Typ = "text" name = "txt2" maxLength = "4" </body> </body> </body>Das obige ist der vom Editor vorgelegte JavaScript Form Focus Automatic Switching Code. Ich hoffe, es wird für alle hilfreich sein!