搜尋 Mozilla 技術支援網站

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

了解更多

how to force Firefox to turn off autocomplete in HTML?

more options

I have a web application that conains a username and password login page. I want to disable the autocomplete feature programatically (i.e. in HTML or javascript). In IE, autocomplete="off" works perfect, but not in Firefox. In Firefox, with autocomplete="off" the username does not autocompete, but the password autocomplete's as soon as I enter a valid username. I do not want Firefox to do this. How can I make this work with Firefox?

I have a web application that conains a username and password login page. I want to disable the autocomplete feature programatically (i.e. in HTML or javascript). In IE, autocomplete="off" works perfect, but not in Firefox. In Firefox, with autocomplete="off" the username does not autocompete, but the password autocomplete's as soon as I enter a valid username. I do not want Firefox to do this. How can I make this work with Firefox?

所有回覆 (2)

more options

That only happens if you have saved a name and password previously in the Password Manager.

more options

Thanks. I did notice that, but was hoping to prevent the prior info from appearing. In any event, thanks.