프로그래밍/HTML

브라우저 '비밀번호 저장' 기능 비활성화

재우니 2020. 9. 21. 12:10

브라우저 '비밀번호 저장' 기능 비활성화

 

stackoverflow.com/a/37292424

 

Disable browser 'Save Password' functionality

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 me wrong, I'm all for doing

stackoverflow.com

<input type="text" name="UserName" autocomplete="off" readonly 
    onfocus="this.removeAttribute('readonly');" >

<input type="password" name="Password" autocomplete="off" readonly 
    onfocus="this.removeAttribute('readonly');" >