In an input text box, sometimes we don't want the user entering digits. This JavaScript prevents the user entering digits.