크롬 자동완성 막기

Open API/Jquery|2021. 12. 20. 14:18
320x100

의도치 않은 input에 아이디가 자꾸 찍혀 있어서 찾아보다보니 고질병으로 

autocomplete 속성으로 하는 방법이 있었으나 크롬 버전이 바뀌면서 사용 불가능.

 

 

<input id="email" readonly type="email" onfocus="if (this.hasAttribute('readonly')) {
    this.removeAttribute('readonly');
    // fix for mobile safari to show virtual keyboard
    this.blur();    this.focus();  }" />

 

https://stackoverflow.com/questions/15738259/disabling-chrome-autofill

 

Disabling Chrome Autofill

I have been running into issues with the chrome autofill behavior on several forms. The fields in the form all have very common and accurate names, such as "email", "name", or "password", and the...

stackoverflow.com

 

320x100

댓글()