Validate Password
Skip Navigation Links.

Validate Password

Skip Navigation LinksHome :: Javascript :: Validate Password

Javascript functions can validate a string to determine if it would make a suitable password. Passwords should be between 3 and 16 characters long and not contain these characters | () [ { ^ $ * + ? . \" \' % & } ] @ # /

This function is interesting in that it makes heavy use of regular expressions for pattern matching.

Here is a javascript function to ensure user input from form fields on your web pages. Attach it to the onchange event of a form field or insert it in a handler.

Enter a string and press test

Copy and paste the javascript code in the text box below into a script block on your web page



Next >> Validate URL
top of page
all content ©1996/2012 BennySutton.com
all images © their respective owners This site uses Thumbshots previews