eaweb
asked on
caps lock check
hi,
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
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
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.jdstiles.com/java/checkforcaps.html
bleh.. i take that one back.. it sucks.
it says caps lock is on even if you use the shift key.
it says caps lock is on even if you use the shift key.
From my previous post, this one works good:
http://www.csua.berkeley.edu/~jgwang/capslock.htm
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.
http://www.csua.berkeley.edu/~jgwang/capslock.htm
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.
ASKER
yes the code is ok, but isnt there a way to let a message balloon apear like windows style?
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.