How to detect caps lock with JavaScript

How to detect caps lock with JavaScript

javascript

The need to verify and notify the user if the Caps Lock key is on is fairly common. It is particularly significant when constructing password inputs because users do not realize they are typing with their caps lock on. Let us see how to detect caps lock with JavaScript to do so. There is a method called that is available on that we can use to do so. This can be accessed inside an event…

Source