IT Community - Software Programming, Web Development and Technical Support

How to generate random password generator.using javascript.?

This is a discussion on How to generate random password generator.using javascript.? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; How to generate random password generator.using javascript.?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-26-2007, 12:41 AM
itbarota itbarota is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 547
itbarota is on a distinguished road
Question How to generate random password generator.using javascript.?

How to generate random password generator.using javascript.?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-26-2007, 12:42 AM
oxygen oxygen is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 633
oxygen is on a distinguished road
Default Re: How to generate random password generator.using javascript.?

<html>
<body>
<script>

var keylist="abcdefghijklmnopqrstuvwxyz123456789"
var temp=''

function generatepass(plength){
temp=''
for (i=0;i<plength;i++)
temp+=keylist.charAt(Math.floor(Math.random()*keyl ist.length))
return temp
}

function populateform(enterlength){
document.pgenerate.output.value=generatepass(enter length)
}

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

</body>
</html>
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I generate a random number from php? itbarota PHP Programming 2 09-25-2007 08:57 AM
How do I generate a random number from php? kingmaker PHP Programming 2 07-24-2007 02:56 AM
How to generate word or password randomly? Archer C# Programming 1 07-21-2007 01:20 AM
Password generator using C# .net oxygen C# Programming 1 07-19-2007 12:53 AM
How to Generate Various types of random numbers using SQLServer ? Archer Database Support 1 07-16-2007 02:26 AM


All times are GMT -7. The time now is 11:14 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0