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.


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.

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.

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

            var input = this;
            var name = $(input).attr('name');
            var id = $(input).attr('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: