autocomplete=“off” not working for Google Chrome

前端 未结 7 976
日久生厌
日久生厌 2020-12-12 00:55

This question has been asked Several times in the past but unfortunately there\'s no way i could disable autofill for Google Chrome (v.36.0.1985.125 m)

I have alread

7条回答
  •  自闭症患者
    2020-12-12 01:38

    This readonly-fix worked for me:

    fix browser autofill in: readonly and set writeble on focus (at mouse click and tabbing through fields)

     
    

    By the way, some more information on Chrome and Safari auto fill behaviour:

    Sometimes even autocomplete=off would not prevent to fill in credentials into wrong fields, but not user or nickname field. I guess, the Chrome and Safari look for a password field to insert your saved credentials. Then it autofills username into the nearest textlike-input field , that appears prior the password field in DOM (just guessing due to observation). As the browser is the last instance and you can not directly control it, but the read-only trick above fixes it. :-)

提交回复
热议问题