简体   繁体   English

如何避免浏览器列出关于输入字段的建议(不一定与禁用自动完成/自动填充相同)?

[英]How do I keep browser from listing suggestions for input-field (not necessarily the same as disabling autocomplete/autofill)?

I currently have autocomplete='off' on the "form" tag. 我目前在“表单”标签上具有autocomplete ='off'。 I currently have autocomplete='random-stuff' on the "input" tag. 我目前在“输入”标签上有autocomplete ='random-stuff'。 Per many different suggestions I found on Stack Overflow for disabling auto-fill, I have tried various values for the autocomplete attribute: "off", "false", "disabled", "disable", "new-password", "[random]". 根据我在Stack Overflow上发现的用于禁用自动填充的许多不同建议,我已经尝试了autocomplete属性的各种值:“ off”,“ false”,“ disabled”,“ disable”,“ new-password”,“ [random ]”。 Chrome's auto-fill seems to be disabled (somewhat) but the auto-fill light-yellow background still appears if one selects one of the suggestions. Chrome的自动填充功能似乎已被禁用(某种程度上),但是如果选择了其中一项建议,则仍会出现自动填充浅黄色背景。 But nothing I've tried keeps Chrome from offering suggestions. 但是我尝试过的所有措施都无法阻止Chrome提供建议。

I want to disable auto-fill AND prevent suggestions for the input-field. 我想禁用自动填充功能,并避免对输入字段提出建议。 I'm looking for a solution using any combination of PHP, HTML, CSS, or Javascript. 我正在寻找使用PHP,HTML,CSS或Javascript的任何组合的解决方案。 Thanks. 谢谢。

对于谷歌浏览器69.0.3497.81 autocomplete ='off'工作正常

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当JSP中不一定需要输入字段时,如何存储输入字段中的空值? - How do I store null value from input field when the input field is not necessarily required in JSP? 禁用 HTML 输入字段中文本的黑色下划线 - Disabling black underline on text in HTML input-field 禁用输入字段的自动完成/自动填充 - disable autocomplete / autofill for an input field 如何在输入字段内触发函数? 或具有该功能的默认按钮却未实际提交? - How can i fire a function inside an input-field? or a default button with that function without actually submitting? 获取输入字段值发送到另一个输入字段 - Get input-field value send to another input-field 如何在输入字段中填充所选值 - How to populate selected value inside a input-field 无论日期格式如何,如何使用JavaScript验证输入字段? - How to validate a input-field with JavaScript no matter which date format it is? 如何将输入字段的文本水平对齐到相邻元素的文本 - How to horizontally align text of input-field to that of a neighbouring element 如何通过 javascript 更改 HTML 输入字段/复选框的边框颜色? - How to change bordercolor on HTML input-field/checkbox through javascript? 名称输入字段显示最新chrome中的信用卡自动填充建议 - Name input field showing credit card autofill suggestions in latest chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM