Jump to content


Creating a password checker like on this website

  • Please log in to reply
1 reply to this topic

#1 DrAwesomePhD

  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 23 February 2006 - 07:07 PM

Hi, i was totally intrigued by the way this website checked your password automatically when you filled in the fields, if your two passwords matched it changed the border on the <div> to green from white, if they didnt it changed them to red...

I'm not too familiar with javascript, but could anyone help me please... and tell me how to do something like that? The main problem seems to be - when you deselect a password box, you have to make a check to see if they are the same... but how do you know when someone deselects the password box?

#2 yonta

  • Members
  • PipPipPip
  • Advanced Member
  • 70 posts

Posted 05 March 2006 - 12:36 AM


think it's the javascript onBlur event - it fires when the user clicks outside the form control. google it ;)
do it, do it right, do it right now

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users