Aapka Apna blog jo kre apki problem Solve

www.technicaldestination.blogspot.com

This website helps you to solve hacking problems

www.technicaldestination.blogspot.com

My blog help to users to solve hacking and programming errors.

www.technicaldestination.blogspot.com

if you see hacking news then follow me on instagram facebook blogger and youtube.

Showing posts with label Random Password Generator With Javascript. Show all posts
Showing posts with label Random Password Generator With Javascript. Show all posts

Friday, 5 July 2019

Random Password Generator With Javascript || javascript Mini project

Random Password Generator With Javascript



 Code Here


<!DOCTYPE html>

<html>

<head>

<title> Generator Password</title>

</head>

<body>


 <h1> Password Generator</h1>


  <input type="text" name="" id="generate">

  <input type="button" name="" value ="Password Generator button" onclick="pass()">


   <script type="text/javascript">

   

    function pass(){


    var result= ''


    for (var i = 0; i <10; i++) {

   

    var sac = "abcdefghijklmnopqrstuvwxyz!@#$^&*()_+=123456";

    var din = Math.floor(Math.random() * 40);

    result +=  sac.charAt(din);


    }


      document.getElementById('generate').value = result; 

    }


   </script>

</body>

</html>

Share:
loading...