I created 2 login pages of same domain.
I put the form name different for 2 forms
Just put a random value in autocomplete.
<input autocomplete = "!!1337!!">
$("#CVV").on("focusout", function() {
if ($(this).val() == "") {
$(this).attr("type", "text");
}
});
<input type="text" name="username" class="input" ID="CVV" onfocus="removeErr('CVV'); $(this).attr('type', 'password');">
https://bugzilla.mozilla.org/show_bug.cgi?id=956906
http://lists.w3.org/Archives/Public/public-webapps/2014JanMar/0015.html
Autocomplete has been disabled for password type input fields. The above links mention that respectively for FireFox and IE, but I see that setting autocomplete to off for form too is not working.
You all should try this attribute :
<input type="password" autocomplete="new-password" />
See the documentation there : https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Preventing_autofilling_with_autocompletenew-password
Nothing worked for me for the password field so I'll share my trick
<input name="password" type="text" onkeydown="this.type='password'">
I believe it is still secure and works on Chrome, Firefox, other
This is working for me:
<input type="text" name="username" value=" " onclick="if(this.value == ' ') this.value=''" >
Click here for more info about this.