JavaScript Tutorial

Random Password Generator Using JavaScript

This Simple Program allows user to enter password length and generates Random Password according to user’s length.

Follow These Instructions :-

First, Create Html Code:

<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">

And Create JavaScript Code:


var keylist="abcdefghijklmnopqrstuvwxyz123456789"
 var temp=''

function generatepass(plength){
 for (i=0;i<plength;i++)
 return temp

function populateform(enterlength){

Now You have successfully created simple password generator.

Download Random Generator Source Code Free:

Leave a Reply

Your email address will not be published. Required fields are marked *