We have an application with a login screen which has input field text and password. What I am trying to achive here is;
- Prevent browsers to ask if, user wants it to be memorized by browser.
- Prevent all browsers not to memorize that field at any situation. Even if you said "yes", I want all the browsers ignore that field entirely.
The things I tried;
- I tried to use
autocomplete="off"
on both form and inputs but with the new Firefox version, it doesn't seem to work. - I inserted an non-displayed input password field to trick the browser. But it is bad for accessibility. It also lowers the usability score.
- I tried to make
autocomplete="new-password"
but internet explorer completely ignores it.. (like I am surprised)
So if anyone achieved a good result with any other solutions, and if it could be shared, it would be a great contribution to developer community.
autocomplete="new-password"
for browsers that work and find an IE specific fix for this problem? I think you have discardedautocomplete="new-password"
as if it is completely useless. Perhaps, ifautocomplete="off"
works in IE, use that for IE and usenew-password
for the rest. – Homage