Possible Duplicate:
Password Strength Meter
Hi I have created a password meter script which you can see: here
This code might seem a little repetitive but I like it. But for some reason after the fair strength when I press SHIFT, TAB, CAPS LOCK, etc. it goes to the next strenght for some reason but I just cant figure out why.
Best Regards, Shawn
Hope you can help :)
I'd suggest changing your event listener from an onkeydown
to onkeyup
. It seems to work here.