Disable browser 'Save Password' functionality

前端 未结 30 3711
失恋的感觉
失恋的感觉 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-21 23:56

    The simplest way to solve this problem is to place INPUT fields outside the FORM tag and add two hidden fields inside the FORM tag. Then in a submit event listener before the form data gets submitted to server copy values from visible input to the invisible ones.

    Here's an example (you can't run it here, since the form action is not set to a real login script):

    
    
    
      Login & Save password test
      
      
    
    
      
          
          
          
    
          

提交回复
热议问题