搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Firefox fills in login information on every form on a page

more options

I'm a web programmer. In one of my projects, I have a username/password login screen, and Firefox remembers my login just fine.

However, I have a special access page within the project that asks for a different username and password. These fields have very different names and ids, but Firefox still inserts the same login information, and I don't want it to do that.

Is there away for me to prevent that from happening?

Both fields have "autocomplete=off" on them.

I am running the newest version of Firefox on Windows 7 64bit.

Thanks!

I'm a web programmer. In one of my projects, I have a username/password login screen, and Firefox remembers my login just fine. However, I have a special access page within the project that asks for a different username and password. These fields have very different names and ids, but Firefox still inserts the same login information, and I don't want it to do that. Is there away for me to prevent that from happening? Both fields have "autocomplete=off" on them. I am running the newest version of Firefox on Windows 7 64bit. Thanks!

所有回覆 (2)

more options

Enter the second login data, then press the login button. The Password Manager will ask you want to replace the current information. Answer No. Both the old and new information should now be in the PW. When you go to login again, the user/password will not be filled in automatically. Just start entering a few characters in the user field, and a small window will come up with the full user name(s). Pick the one you want to use.

more options

Thanks, but in this case that won't work - to avoid exactly this situation of having the browser remember the login, the two login text fields aren't connected to a form - instead, javascript copies the content of the two fields into the actual (hidden) form and submits there.

As far as I know, Firefox has only started doing this very recently.

I tried catching the text entry from Firefox with jquery, but it happens AFTER the page has completed loading - I might have to try a timeout to empty the fields.