|
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.
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);">
<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 ( ). If you prefer the Reset button to be below the "Generate password" button, just replace the with a <br> tag.
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 ]