TLDR Web Dev · QUICK LINKS

DETECT CAPS LOCK WITH JAVASCRIPT

davidwalsh.name1 min read

Summary from the TLDR Web Dev newsletter

Users may accidentally have Caps Lock enabled when typing their passwords - developers can use JavaScript's getModifierState method to detect this and provide a helpful warning.