For allowing only numeric values to be placed inside a text box using JavaScript, we need to capture the “onKeyDown ” event for the keyboard. This check is done on client side whenever a user enters a value in the textbox using keyboard keys.

Example of such a script is:

TextBoxTest.Att ributes.Add(”on KeyDown”, “if((event.keyC ode >= 48 && event.keyCode <= 57)||(event.key Code >= 96 &&...