為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

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

了解更多

Why is Firefox adding autocomplete="off" to the login fields of my own web site?

  • 2 回覆
  • 1 有這個問題
  • 3 次檢視
  • 最近回覆由 AlHolden

more options

First of all: It's my own web site, my own HTML.

When I look at the source code for my login form (both on my server and as-delivered to the browser), there is no autocomplete="off" attribute there.

And yet, when I examine the field using FireBug, I can see that autocomplete="off" exists there in the DOM. It's been applied to fields 'username' and 'password' for me. Thanks, mystery security overlord!

Consequently, I can not leverage the stored credentials from the security device to complete the form.

Does anybody know where that attribute is being added, and how to disable that?

Again, this is my own code. Thanks!

First of all: It's my own web site, my own HTML. When I look at the source code for my login form (both on my server and as-delivered to the browser), there is no autocomplete="off" attribute there. And yet, when I examine the field using FireBug, I can see that autocomplete="off" exists there in the DOM. It's been applied to fields 'username' and 'password' for me. Thanks, mystery security overlord! Consequently, I can not leverage the stored credentials from the security device to complete the form. Does anybody know where that attribute is being added, and how to disable that? Again, this is my own code. Thanks!

被選擇的解決方法

Can you post a link to a publicly accessible page that doesn't require authentication (signing on)?

Note that scripts also can add such a autocomplete attribute, so you may need to check the generated code or right-click in these fields and use "Inspect Element" or select the fields and use "View Selection Source" in the right-click context menu.

從原來的回覆中察看解決方案 👍 0

所有回覆 (2)

more options

選擇的解決方法

Can you post a link to a publicly accessible page that doesn't require authentication (signing on)?

Note that scripts also can add such a autocomplete attribute, so you may need to check the generated code or right-click in these fields and use "Inspect Element" or select the fields and use "View Selection Source" in the right-click context menu.

more options

You're right about the script cor-el.

My client had gone in without telling me - and added a jQuery mod which popped in those attributes at the $(document).ready event.

That's why I didn't see them while looking at the tag source. Face palm. Thanks!