I would like to know if it is possible to detect the state of caps lock key using jquery and without any key press.
Let me be more clear. I have a password field. When I just click on it or when the password field is on focus, I need to display a warning message if the caps lock is on (similar to windows login). I know about the method of comparing character codes, but that is not what i need.
This is for a Yii application. So if it have any default function to check caps lock state, please let me know.
Any help will be highly appreciated..!
Thanks..!