Here is simple method to check the password strength using javascript, just copy and paste the script given below in your registration field and customize it accordingly.Add this code below inside the body tags of your page.
Please make sure that when you just copy and paste the code given below do remember to change the quotes, it will be in ascii character while copying.Dont forget!!!!, if it is not changed the script wont work.
For example as you can see the quotes in the first line where the javascript is inside ” quotes and this one must be changed to double quotes when it is coped to your code.
<script language="javascript">
function passwordCheck()
{var strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z]) (?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$", "g");
var mediumRegex = new RegExp("^(?=.{7,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))).*$", "g");
var enoughRegex = new RegExp("(?=.{6,}).*", "g");
var pwd = document.getElementById("password");
if (pwd.value.length==0) {
document.getElementById('check').innerHTML = 'Type Password';
} else if (false == enoughRegex.test(pwd.value)) {
document.getElementById('check').innerHTML = 'More Characters';
} else if (strongRegex.test(pwd.value)) {
document.getElementById('check').innerHTML = '<b><span style="color:green">
Strong!</span>';
} else if (mediumRegex.test(pwd.value)) {
document.getElementById('check').innerHTML = '</b><b><span style="color:orange">
Medium!</span>';
} else {
document.getElementById('check').innerHTML = '</b><b><span style="color:red">Weak!</span>';
}}
</b></script>
<input name="password" id="password" type="text" size="15" maxlength="20" onkeyup="return passwordCheck();" />
<span id="check">Type Password</span>
Thank you very much.
Incoming search terms:
- check password strength javascript (19)
- how to check password strength in javascript (17)
- javascript password strength script (12)
- password strength using javascript (9)
- check password strength using javascript (8)
- check password strength in jsp (7)
- javascript check password strength (7)
- checking password strength javascript (7)
- how the password strength can be known by using jsp code (7)
- jsp source code to check password strength (3)
- sample codes for checking the strength of password using jsp (3)
- password strength using java script (3)
- passwor strength meter jsp sample code (3)
- password strength checker code in jsp (3)
- checking password strength in jsp (3)
- password strength javascript example (3)
- password strength in jsp (2)
- password strength check using javascript (2)
- checking password strength in javascript (2)
- javascript password strength using images (2)
- code for checking password strength in jsp (2)
- password strength checking code in jsp (2)
- password strength meter dynamic checker javascript (2)
- script simple javascript password strength (2)
- find password strength in php (2)
- password strength checker javascript (2)
- password strength checker in jsp (2)
- Password strength checker in javascript (2)
- how to check password strength in php (2)
- code for password strength in jsp (2)
- javascript test password strength (2)
- check strength of password javascript (2)
- symfony2 password strenght (2)
- check password javascript (2)
- password strength scripts (2)
- jsp code for password strength checking (2)
- java code for checking password strength (2)
- basic password strength using javascript in html (2)
- jsp password strength ajax example (2)
- var strongregex = new regexp(^(?= {8 })(?= *[a-z])(?= *[a-z])(?= *[0-9])(?= *\\w) *$ g); (2)
You will also be interested in ,
- Simple message slideshow news ticker using javascript
- Block key press using javascript
- Fade in Fade out effect using simple jquery
- Javascript popup window
- Changing the image by dynamically changing the image source using javascript
- Copy form field values using javascript
- Dynamically Changing hyperlink color on a website using javascript
- How to check browser javascript enabled?
- HTTP referrer using javascript

