Solved

caps lock check

Posted on 2007-11-27
6
403 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:eaweb
  • 3
  • 2
6 Comments
 
LVL 21

Accepted Solution

by:
nizsmo earned 500 total points
Comment Utility
0
 
LVL 6

Expert Comment

by:starfailure
Comment Utility
0
 
LVL 6

Expert Comment

by:starfailure
Comment Utility
bleh.. i take that one back.. it sucks.
it says caps lock is on even if you use the shift key.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 21

Expert Comment

by:nizsmo
Comment Utility
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.
0
 

Author Comment

by:eaweb
Comment Utility
yes the code is ok, but isnt there a way to let a message balloon apear like windows style?
0
 
LVL 21

Expert Comment

by:nizsmo
Comment Utility
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.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now