Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to remove password suggestion Chrome

When I am trying to change password in Chrome, there is always a dropdown list with "Use password for:" options. Is it possible to remove it? I have tried autocomplete="off" and autocomplete="false" but without success.

enter image description here

like image 950
fishera Avatar asked Aug 27 '15 09:08

fishera


1 Answers

I had the same problem it seems difficult to solve I found a solution To solve the problem,
the input in initialization must be equal to type="text" and then change to type="password" with the first focus or insert input

function changeTypeInput(inputElement){ 
  inputElement.type="password" 
}
<input type="text"
  id="anyUniqueId"  
  onfocus="changeTypeInput(this)"
  oninput="changeTypeInput(this)"
/>
like image 92
hassan khademi Avatar answered Oct 02 '22 16:10

hassan khademi