sude you can attach onKeyDown event and call ev.preventDefault(); if ev.keyCode not matched to [48…57] for 0…9 digits, but there is also abolity to press ctrl+v or paste value with mouse right-click.
The better way is try to bring all cases to myForm.attachEvent(“onBeforeChange”) or myForm.attachEvent(“onChange”) logic.