Coders Packet

OTP GENERATOR USING JAVASCRIPT

By Harshita Tripathi

This project is made using JavaScript with CSS as frontend and HTML for structure. It is a 6 digit ONE TIME PASSWORD GENERATOR.

This is a JavaScript project. 

This project is about generating a one time password.

It will generate 6 digit OTP whenever clicked on GENERATE button on the screen.

By clicking again on that button one can generate more number of 6 digit OTP.

The Random function is used to generate OTP.

The OTP is printed using JavaScript Function innerHTML.

Also, floor function is used with Random function to make the value integer and not decimal or float.

Further the OPT generator has some CSS given to make it look more attractive.

Download Complete Code

Comments

No comments yet