在Chrome 66中禁用自动完成功能 [英] Disable autocomplete in chrome 66

查看:240
本文介绍了在Chrome 66中禁用自动完成功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在Chrome 66中的文本字段上禁用自动完成功能?
我尝试了许多选项,例如:


  1. autocomplete =off

  2. autocomplete =false

  3. autocomplete =禁用

  4. 自动完成=全新
    等。

任何人都可以帮我解决这个问题吗?

另外,chrome还会自动启用自动完成一个用户名,如果它有一个密码类型字段在它下面?

解决方案

使用此



$ $(document).ready(function(){
$(input)。attr(autocomplete,off);
} );



如果在Chrome中启用了自动填充功能,您可以按照以下步骤关闭它:



在Chrome中关闭自动填充


  1. 点击Chrome菜单图标。 (屏幕右上方有三行)

  2. 点击设置。

  3. 点击页面底部的显示高级设置

  4. 在密码和表格部分中,取消选中启用自动填充以便在一次点击中填充
    网页表单


Is there any way to disable autocomplete on a text field in chrome 66? I have tried a number of options like :

  1. autocomplete="off"
  2. autocomplete="false"
  3. autocomplete="disabled"
  4. autocomplete="something-new" etc.

Can anyone help me with this?

Also, one more thing does chrome automatically enables autocomplete for a username if it has a password type field below it?

解决方案

Use this

$(document).ready(function(){ $("input").attr("autocomplete", "off"); });

And if the autofill is enabled in chrome you can follow these steps to turn it off:

Turning Off Autofill in Chrome

  1. Click the Chrome menu icon. (Three lines at the top right of your screen.)
  2. Click on Settings.
  3. At the bottom of the page, click "Show Advanced Settings"
  4. In the Passwords and Forms section, uncheck "Enable Autofill to fill out web forms in a single click"

这篇关于在Chrome 66中禁用自动完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆