Input Character Restriction

Hi all!

I am looking at adding an input that only allows the user to place numbers in on the web, would this be possible? If so, how would it be done?