Masking Password After A Delay – YouShallPass

Category: Form , Javascript | January 18, 2018
Views Total:3,162 views
Official Page:Go to website
Last Update:January 18, 2018


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));

You Might Be Interested In:

Leave a Reply