Disable Firefox's Auto-fill

前端 未结 11 1357
天涯浪人
天涯浪人 2020-12-03 13:54

Is it possible to disable Firefox\'s auto-fill feature without disabling auto-complete?

I know I can do this:

autocomplete=\"off\"
<         


        
11条回答
  •  囚心锁ツ
    2020-12-03 14:14

    Putting two dummy fields in between the actual username field and the actual password field worked for me, e.g.:

    
    
    
    
    

    This prevented the autofill of the username, as well as the autofill of the password.

    autocomplete="new-password" is apparently not fully implemented, but can help with some browsers. I doubt that it was helpful with FireFox, but it is there for future versions in case the feature is more widely adopted.

提交回复
热议问题