Disable browser 'Save Password' functionality

前端 未结 30 3680
失恋的感觉
失恋的感觉 2020-11-21 23:29

One of the joys of working for a government healthcare agency is having to deal with all of the paranoia around dealing with PHI (Protected Health Information). Don\'t get m

30条回答
  •  渐次进展
    2020-11-22 00:06

    In addition to

    autocomplete="off"
    

    Use

    readonly onfocus="this.removeAttribute('readonly');"
    

    for the inputs that you do not want them to remember form data (username, password, etc.) as shown below:

    
    
    
    

    Tested on the latest versions of the major browsers i.e. Google Chrome, Mozilla Firefox, Microsoft Edge, etc. and works like a charm. Hope this helps.

提交回复
热议问题