HTML restricts the text box to only input numbers onkeyup+onafterpaste
Author:Eve ColeUpdate Time:2009-06-20 16:35:20
Limit the text box to only numbers
<input onkeyup="if(isNaN(value))execCommand('undo')" onafterpaste="if(isNaN(value))execCommand('undo')"> <input name=txt1 onchange="if(/D/.test(this.value)){alert('Only numbers can be entered');this.value='';}">