Password Generator.
The script is taken from this site:
http://www.javascriptkit.com/script/Purpose:if you are having a hard time to think of a password,this is the Javascript for you.
Here is a preview.Please download this website to see the preview:
http://uppit.com/BUVGYBXHere is the code:
<script>
//Random password generator- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use
var keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''
function generatepass(plength){
temp=''
for (i=0;i<plength;i++)
temp+=keylist.charAt(Math.floor(Math.random()*keylist.length))
return temp
}
function populateform(enterlength){
document.pgenerate.output.value=generatepass(enterlength)
}
</script>
<form name="pgenerate">
<input type="text" size=18 name="output">
<input type="button" value="Generate Password" onClick="populateform
(this.form.thelength.value)"><br />
<b>Password Length:</b> <input type="text" name="thelength" size=3
value="7">
</form>
If you get any errors,or need more help.Please comment.
Thank you for your time.