【问题标题】:Is there a way to prevent browser autofill an input box? [duplicate]有没有办法防止浏览器自动填充输入框? [复制]
【发布时间】:2011-10-24 09:51:14
【问题描述】:

可能的重复:
How do you disable browser Autocomplete on web form field / input tag?
Is there a W3C valid way to disable autocomplete in a HTML form?

我的浏览器会自动填写我网站中的注册表,该网站应该是匿名的,因此对于用户来说,在表单上看到他们的名字并不是一个很好的迹象。

有没有办法防止这种情况发生?

我可以使用输入框并简单地用 javascript 擦除它,但我想知道是否还有其他方法。谢谢

【问题讨论】:

    标签: html forms


    【解决方案1】:
    <input type="text" autocomplete="off" />
    

    应该可以的。

    【讨论】:

      猜你喜欢
      • 2017-08-22
      • 2015-09-04
      • 2014-06-03
      • 2021-02-25
      • 1970-01-01
      • 2019-09-18
      • 2014-01-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多