Allow only integers in input html. Answer: Use the RegExp test() Method.