Home  >  Article  >  Web Front-end  >  Enter password to detect whether capital letters are locked js implementation code_javascript skills

Enter password to detect whether capital letters are locked js implementation code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:47:281361browse

Not even this month. Must make up the number.
For better user experience, the website login will check whether capitalization is enabled when entering the password. Alert users.
Test it in the input box below! This code comes from .
But I made a little improvement.
Mainly performs real-time detection of Caps Lock for activated input boxes.

Copy code The code is as follows:






Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn