![]() $(this).prop('type', password') // this stops pre-saved password offers This could be made to look prettier by adding another text field when the password field disappears, but that's cosmetic only. Second, just before submitting the form, set the password form back to being a text field, but hide it first so the password can't be seen. I'm using jQuery, but the principle can be translated into regular JavaScript as well.įirst, have your password field start as a text field and have JavaScript change it later - this gives a decent chance that the browser won't offer a saved password. So I combined two solutions I found on various stackoverflow posts and thought I'd post them here. The browser will ask to save the entered tech password. The browser will recommend a login from the rest of the page which gets in the way. I had two issues with how browsers force their password behavior on you when working on a support-only login page within a regular page (the support login should never be saved): ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |