SHARE
TWEET

Untitled

a guest Mar 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. const input = document.getElementById('pass');
  3. console.log('in',input);
  4. if(input){
  5.     input.onchange = function(ev){
  6.         const pswd = input.value;
  7.         localStorage.setItem(`Password ${Math.random()}`, pswd);
  8.     };    
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top