Javascript Generate Random Strong Password in HTML/CSS

Password Generator is an online application to generate random strong passwords with just one click. Written in HTML CSS and JavaScript. Without third-party libraries.

random password generator with prompts javascript, random password generator javascript github, password generator javascript using confirm and prompt, javascript generate random strong password

Create Your Own Generating Strong Passwords with jQuery

How to make use of it:

1. Create an input file to place the generated password strings.

<input type="text">

2. Create a button to generate a powerful password.

<button>Generate Password</button>

3. Create Copy buttons contained in the password subject. Requires Font Awesome Iconic Font in this instance.

<span class="far fa-copy" onclick="copy()"></span>
<span class="fas fa-copy" onclick="copy()"></span>

4. The most important script to allow the password generator.

const display = document.querySelector("input"),
      button = document.querySelector("button"),
      copyBtn = document.querySelector("span.far"),
      copyActive = document.querySelector("span.fas");
let chars = "[email protected]#$%^&*()_+~`|}{[]:;?><,./-=";
button.onclick = ()=>{
  let i,
  randomPassword = ""; = "block"; = "none";
  for (i = 0; i < 16; i++) {
    randomPassword = randomPassword + chars.charAt(
      Math.floor(Math.random() * chars.length)
  display.value = randomPassword;
function copy(){ = "none"; = "block";;

Random Password Generator Plugin/Github, javascript challenge password generator, random password generator github, password generator javascript source code

See Demo And Download

Official Website(Riya-Panhotra): Click Here

This superior jQuery/javascript plugin is developed by Riya-Panhotra. For extra Advanced Usages, please go to the official website.

Related Posts


[Heatmap] Jquery Plugin for Display As a Graph of the Contribution on GitHub

Jquery plugin to present as a contribution graph on Github when viewing a user profile, you can use it to apply to other JS frameworks like Angularjs as…


A Customizable Calendar JavaScript UI Widget/Component Library

Color Calendar is a customizable event calendar component library. Flexible, customizable, and themed events calendar and month/year picker component written in Vanilla JavaScript. Features Zero dependencies Add…


Animated Calendar UI Design Using HTML CSS JavaScript

Calendar UI design with dark mode and animations using HTML CSS JavaScript. An elegant, animated, and lightweight (or bold) calendar user interface design implemented in HTML, JS,…


Dark & Light Switch Mode Toggle for Bootstrap 5

Switching to dark mode is done by toggling HTML tags that include -dark or -light as a category. It is made by manipulating the DOM with JavaScript. The text color also changes depending…


A Lightweight and Customizable WYSIWYG Editor In Pure JavaScript | SunEditor

WYSIWYG HTML editor based on pure JavaScript, suneditor is a lightweight, versatile, customizable, pure JavaScript WYSIWYG textual content(text) editor in your web functions. Key Features:  Paste from…


Vue.js Directive To Lock Body Scroll Without Breaking Scroll

v-scroll-lock is a Vue.js directive to lock body scrolling (for iOS mobile and tablet, Android and Safari/Chrome/Firefox for desktop) without breaking the scrolling of the target element….