title: How can I enter only numbers in TextBox using JavaScript without disable right click?
body: <p>I want to allow numbers only to be allowed for a textbox and I already do it <code>onkeydown</code> event by allow only numbers and prevent <kbd>ctrl</kbd>+<kbd>V</kbd> but I have two problems :</p>
  
  <ol>
  <li><p>if I make right click then paste so any char can be entered and I want a solution without disable right click by <code>oncontextmenu="return false;"</code></p></li>
  <li><p>if I drag and drop any text it will be entered</p></li>
  </ol>
  
  <p>Is there any solution that can work in all browsers without problem?</p>