Masking Password After A Delay – YouShallPass

Category: Form , Javascript | October 2, 2022
Views Total:769 views
Official Page:Go to website
Last Update:October 2, 2022


Masking Password After A Delay – YouShallPass


YouShallPass is a small JavaScript library which automatically masks your password strings after a certain delay as you seen on the iPhone.

How to use it:

Download and link to the main JavaScript ‘YouShallPass.js’:

<script src="YouShallPass.js"></script>

Initialize the library and specify the masking pattern and delay time.

var ysp = new YouShallPass("*", 800);

Enable the password mask functionality on your text field.

<input type="text" id="passwd">
document.querySelector("#passwd").addEventListener('input', ysp.keyboardInputHandle.bind(ysp));

See Also:

You Might Be Interested In:

Leave a Reply