I want to restrict user to enter characters in an input field. I m currently check the field after the user input and alert a message to the user. But, I found this way very annoying. Can I just restrict the user by not allowing them to key in the characters when the field is on focus and then beep maybe?? Can I do this with Java Script? Thanks.