title: Javascript textbox call event when value changes
body: <p>I have a textbox, and whenever the value of the box changes, I want to check and see if 20 digits have been entered.</p>
  <p>I thought that I would use the <code>onChange</code> event, but this seems to be interpreted as the <code>onBlur</code> event on IE.</p>
  <p>So then I thought I would use <code>onKeyDown</code>, but the problem comes in if the user wants to paste a value into the field, then the function never gets called.</p>
  <p>There are no other form boxes so I can't rely on <code>onBlur</code> or expect that they will change focus ever.</p>
  <p>How do I do this?</p>
  <p>I just want to evaluate the value of the textbox every time the value of the textbox changes.</p>
  <pre><code>&lt;input type=&quot;text&quot; onKeyDown=&quot;myfunction()&quot;&gt;
  </code></pre>