title: Enter only number in text box by javascript onkeypress problem
body: <p>I have a html text box,  <code>onkeypress</code> event will call a function and the function allow to enter only numbers (0-9). this is working fine when the user enter by directly.</p>
  
  <p>The problem will come when the user copy and paste some character or String into the text box. I don't know when should I call that JavaScript function to validate pasted values are Number or Char.</p>
  
  <p>Any idea?</p>