DEV Community


Posted on


Bypass suggest saved password of browser.

<input oninput="onInput(this)" type="text" value=""/>

var passwordReal = [];

function onInput(e) {
   var value = Array.from(e.value);

   // Allow copy
   if (value.indexOf('') < 0) {
      this.passwordReal = value;
   // If current array value is greater than temp array, get the last value just entered
   // Otherwise, calculate to make 2 arrays equal
  else if (value.length > this.passwordReal.length) {
   } else {
      passwordReal.splice(value.length, (passwordReal.length - value.length));

   e.value = => c.replace(/./gi, '')).join('');


Demo :

Oldest comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git