caps lock check

Posted on 2007-11-27
Last Modified: 2013-11-19

does someone have a javascript code that checks if caps lock is on and displays a message balloon like windows does when your are going to insert a password and the caps lock is on?
i need it to apear everytime, but one time when the password input box has the focus and when clicking on the balloon the message disapears.

thanks in advance
Question by:eaweb
  • 3
  • 2
LVL 21

Accepted Solution

nizsmo earned 500 total points
ID: 20360112

Expert Comment

ID: 20360130

Expert Comment

ID: 20360138
bleh.. i take that one back.. it sucks.
it says caps lock is on even if you use the shift key.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

LVL 21

Expert Comment

ID: 20360263
From my previous post, this one works good:

even with the shift key (ie it doesn't confuse between shift and caps lock!)
but the latter one has the same problem as starfailure mentioned.

Author Comment

ID: 20360422
yes the code is ok, but isnt there a way to let a message balloon apear like windows style?
LVL 21

Expert Comment

ID: 20360515
That I am not sure, I haven't seen it on any webpages before, but I suspect (if it can be done) needs a bit of styling and javascript coding to get the desired effect.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question