Today is . Page created 08/19/09

Random Password Random Password Generator II Generate Random Passwords

First character can be: Number Lowercase Uppercase Other
Latter characters can be: Number Lowercase Uppercase Other
Password length:
Extra password characters:
New password:
 
Vertical Line Divider

Generate a random password with the ability to include special characters and password restrictions.

We have tested the code in IE 8.0, Firefox3.5.2, Opera 9.64, Netscape 9.0.0.6, Flock2.51 and Safari Public Beta 4(528.16). This script worked well in all platforms with no variations observed.

Depending on your knowledge of HTML and javascripts, this is an easy, two (2) part copy and paste code that goes in both the <HEAD> section (No reconfigurations) and <BODY> section (anywhere you want it to appear) of your document. Once the code is inserted, the generator is good to go.

On A Final Note     The Reset button is not part of the script. we added that as a little extra. In order to add that button, just insert the following code into the <BODY> section of code before the closing </form> tag. See below where and howto.

<input type="reset" value="Reset">

<input type=button value="Generate password" onClick="document.myform.password.value =
getPassword(document.myform.passwordLength.value, document.myform.extraChars.value,
document.myform.firstNumber.checked, document.myform.firstLower.checked,
document.myform.firstUpper.checked, document.myform.firstOther.checked,
document.myform.latterNumber.checked, document.myform.latterLower.checked,
document.myform.latterUpper.checked, document.myform.latterOther.checked);">&nbsp;
<input type="reset" value="Reset">
</form>

As you can notice in our above example and also in the generator itself, the Reset button is next to the "Generate password" button with one space (&nbsp;). If you prefer the Reset button to be below the "Generate password" button, just replace the &nbsp; with a <br> tag.

For Your Information When you hit the Reset button, if you have changed the "Password Length", it will reset to the default of 8.

We hope our tutorial was easy to follow and we covered everything in detail. If you would like to add this effect into your pages, grab the respective below link and you are there. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Get Code Here ]   [ Rate This Page ]   Scripts In Conflict ]   Bookmark and Share