文本框在火狐中不能点了_在IE和FireFox中关闭文本框的自动完成功能

文本框在火狐中不能点了

文本框在火狐中不能点了

This is one a lot of people know, but it's worth covering again because it's easily forgotten as it's a small detail. Since we do eFinance sites, we often don't want folks' UserNames collected and stored in AutoComplete, especially when the site is browsed on a public machine.

这是很多人都知道的,但是值得再次介绍,因为它是一个很小的细节,很容易被忘记。 由于我们拥有eFinance网站,因此我们通常不希望收集或存储人们的用户名并存储在AutoComplete中,尤其是在公共计算机上浏览该网站时。

<form id="formSignOn" autocomplete="off" method="post" runat="server">

<form id =“ formSignOn” autocomplete =“ off” method =“ post” runat =“ server”>

Note that autocomplete="false" doesn't work. However, autocomplete="off" works in both IE and FireFox.

请注意,autocomplete =“ false”不起作用。 但是,autocomplete =“ off”在IE和FireFox中均有效。

Thanks to Johnson Michael for reminding me of this tip.

感谢Johnson Michael提醒我这个技巧。

翻译自: https://www.hanselman.com/blog/turning-off-autocomplete-for-textboxes-in-ie-and-firefox

文本框在火狐中不能点了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值