According to MDN, we should most definitely not be using the .keyCode property. It is deprecated: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode On W3 school, this fact is played down and there is only a side note saying that .keyCode is provided for compatibility only and that the lat…
Tag: keycode
Convert to uppercase as user types using javascript
I want to convert lowercase chars to uppercase as the user types using javascript. Any suggestions are welcome. I have tried the following: Answer