Javascript Char Codes (Key Codes) - Cambia Rese
arch
example of coding in javascript:
|
|
|
example of coding in javascript:
function isNumberKey(evt)
{ var charCode = (evt.which) ? evt.which : event.keyCode if (charCode != 46 && charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; }
In html call like this function : onkeypress="return
isNumberKey(event);"
|
No comments:
Post a Comment