In my application, while logging in browser asked me to save password. To prevent that I used html tag autocomplete = "off" and it is not working for some browser.
For a more step security - If browser asked to save password, Password should get changed while saving the password in browse.
For that on click of login, I fetch the password from field and then changed the password with dummy password using javascript.
Code :
function onLoginClick(){
var passStr = $("#myPassword").val();
$("#myPassword").val('dummyPassword');
}
But while saving password, Browser is picking up the actual password not that dummy password.