You Are Viewing Daily Archive: November 15, 2021


How To Detect If Caps Lock Is On Using Pure JavaScript?

There are quite a few scripts out there for checking whether the Caps Lock key is on. However, the top searches for a helpful JavaScript function turn up a lot of dated, obsolete code that usually doesn’t work or uses techniques that are frowned upon, such as obtrusive JavaScript. This technique i...