aguiafurtiva

nume.js

Oct 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. function SomenteNumero(e){
  2. var tecla=(window.event)?event.keyCode:e.which;
  3. if((tecla > 47 && tecla < 58)) return true;
  4. else{
  5. if (tecla != 8) return false;
  6. else return true;
  7. }
  8. }
Add Comment
Please, Sign In to add comment