title: onkeypress does not working fine in Firefox?
body: <p>The following code works fine in all browser except Firefox. Fails when maximum length reached it does not allows backspace and delete also. </p>
  
  <pre><code>     function textboxMultilineMaxNumber(txt, maxLen) {
        try {
          if (txt.value.length &gt; (maxLen - 1)) return false;
           } catch (e) {
         }
      }  
  </code></pre>