How do I prevent passwords from being saved?

I've noticed on bank websites, etc, my user IDs aren't saved (they don't appear in a dropdown like other commonly entered stuff does) and there's no prompt for it to remember your password. How is this done? How do the sites notify the browser that they are in 'special' or else exceptions? Just curious.

Answers


Usually you just need to put the autocomplete="off" into the form or field you want to block.

Keep in mind that users can get around this with a scriptlet, plugin, or grease-monkey script.

https://developer.mozilla.org/en/How_to_Turn_Off_Form_Autocompletion#Exceptions_and_Recommended_Workarounds

http://msdn.microsoft.com/en-us/library/ms533032(VS.85).aspx


Set autocomplete to off:

<input type="password" autocomplete="off" />

See also this question: Disable browser 'Save Password' functionality


Autocomplete behavior can be controlled at TextBox also.

As suggested in link below, use AutoCompleteType = "Disabled" to disable autocomplete for any textbox.

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.autocompletetype.aspx


      $(document).ready(function () {  $('input[autocomplete="off"]').each(function () {

            var input = this;
            var name = $(input).attr('name');
            var id = $(input).attr('id');

            $(input).removeAttr('name');
            $(input).removeAttr('id');

            setTimeout(function () {

                $(input).attr('name', name);
                $(input).attr('id', id);
            }, 1);
        });
    });

Need Your Help

Convincing a company to add new technologies and techniques to their body of standards?

architecture standards

I work in an organization that relies heavily on technology standards. For the most past this is great and helps provide direction to developers and helps them move across teams really easily.

Proper way to define class deal with list data or batch operation

php list oop

When working with some project, their are special kind of model class, which deal with list or batch data content, eg: