Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const input = document.getElementById('pass');
- console.log('in',input);
- if(input){
- input.onchange = function(ev){
- const pswd = input.value;
- localStorage.setItem(`Password ${Math.random()}`, pswd);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement