Oct
01
2005

Turning off IE and Firefox’s AutoComplete Feature

Sometimes it is inconvenient or inappropriate to have the autocomplete feature of IE or FireFox. I found it blocked the custom autocomplete feature I was building for my app. Just add autocomplete="off" to the form to turn it off:

<form id="formSignOn" autocomplete="off" method="post" runat="server"></form>

In ASP.NET I added it by using the following line:
Me. Form.Attributes.Add("autocomplete", "off")

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: ASP.NET |

2 Comments »

  • Administrator

    for plain HTML just add it to the form directly like so:

    form method="post" autocomplete="off" ...>

    Comment | November 21, 2005
  • Nitin B

    Though I am a fan of Firefox, it does not obey autocomplete=”off” in case of saved username and password fields. Try it yourself.

    Comment | November 24, 2006

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes