Slow JavaScript
<p>I've got an HTML form where the maximum field value is set to 1 character. As a result, the JavaScript needs to be super-fast. But upon testing, it appears I am too fast for the script, so it misses characters unless I type slowly.</p>

<pre><code>&lt;script type="text/javascript"&gt;
   function formfocus() {
      document.getElementById('element').focus();
   }
   window.onload = formfocus;

function moveOnMax(field,nextFieldID){
  if(field.value.length &gt;= field.maxLength){
    document.getElementById(nextFieldID).focus();
  }
}
&lt;/script&gt;

&lt;input class="text" type="text" name="1" id="element" maxlength="1" onkeyup="moveOnMax(this,'2')"&gt;&lt;input class="text" id="2" onkeyup="moveOnMax(this,'3')" type="text" name="2" maxlength="1"&gt;
</code></pre>

<p>Anyone know a way to speed this up, or am I stuck with having to instruct visitors to type slowly?</p>
