• ARTICLES
SEARCH

How-To Geek

Why Doesn’t AutoComplete Always Work in Firefox?

If you’re the type of person that always allows Firefox to save your login credentials for the sites you visit, you might be very frustrated when you come across a site that doesn’t even prompt you to save the credentials. We’ve got the lowdown on what’s going on here.

Here’s that awful form I have to type into almost every day… I’m really getting tired of it.

image

So I take a look into the source for the page, and here’s the culprit: the AUTOCOMPLETE=”off” on the form will tell Firefox to disable auto completing for that form. The form elements themselves also have the same tag on them.

image

You’ll find this happens quite often on corporate vpns, banks, and other sites where they are worried about security and don’t want you to save your passwords, so they use this tag in their pages to prevent your browser from saving the credentials.

Your Best Option: Greasemonkey it!

You can use a greasemonkey script to re-enable the autocomplete on the form elements. You can find a number of them at userscripts.org:

http://userscripts.org/scripts/search?q=autocomplete

Or you can write your own if you feel like it… for some reason the other scripts did not work on my screwy corporate vpn at work, so I created a new script that manually set the attributes of each.

var frm = document.forms[0];
frm.setAttribute(‘autocomplete’, ‘on’);
frm.elements[0].setAttribute(‘autocomplete’, ‘on’);
frm.elements[1].setAttribute(‘autocomplete’, ‘on’);

Hint: the Firebug extension is a great way to figure out what the elements are if you are writing a script.

Lowell Heddings, better known online as the How-To Geek, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on if you'd like.

  • Published 08/4/07

Comments (7)

  1. What is Firefox?

    This site shows how to add autocomplete=off sites to the password manager without needing greasemonkey:
    http://dotancohen.com/howto/firefox_password_manager.php

  2. Garga L

    Just make a bookmark with this in the location field, and when a page won’t let you autosave, click this bookmark and it will remove the restrictions. Fill out the form and Firefox will ask to save the info for you.

    javascript:(function(){var ca,cea,cs,df,dfe,i,j,x,y;function n(i,what){return i+%22 %22+what+((i==1)?%22%22:%22s%22)}ca=cea=cs=0;df=document.forms;for(i=0;i

  3. darrell

    Randomly some websites I use quite often will stop loading my saved logins from FF. So I will add them again only to realize that now I have multiple records for the same site on the same page in the password manager. I check password manager when it stops loading in sites and it does still show them in there. I usually just have to delete it and read them. Seems pretty flaky. I also have a lot of passwords though. Too many forums and things online. That could be it. I also wish it wouldn’t think http://www.domain.com and domain.com were two different sites, and would fill in for both. Maybe these problems are addressed in Firefox 3.

  4. Brent

    You could optionally create a short php / pear script that submits the user name, password and any other required fields to the post address in the form. You would most likely need to set the referrer to the actual login page’s address. Just install the http_request package for pear and create a post. What ever come’s back is the content after login. You can scrape that page to find whatever info you want.

  5. Logan

    Here is a good Greasemonkey script that worked:
    http://userscripts.org/scripts/show/17453

  6. Googlie

    Hi!

    I have the same problem, but on ALL websites, and the greasemonkey script didn’t help. Is there any about:config settings, that is related to that?
    Thanks for any info :-)

  7. Cattleya

    @Logan: Thanks, it worked!

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!