是否有可能禁用自动完成? [英] Is it possible to disable autocomplete?
问题描述
我知道我不应该做,但它可能更容易解释,然后向你应该这样做通过浏览器客户端。他们有一个公用计算机,并在管理员帐户在计算机上运行的服务器(code我写)。他们希望人们进入他们的信息,但他们不希望有人pressing倒在电子邮件输入框中显示PPLS电子邮件地址。有没有一种方法,我可以通过code在IE中禁用此? (我相信他们使用的是6,但他们可能会使用7或8)。
I know i shouldnt do it but it may be easier then explaining to the clients that you should do it through the browser. They have a public computer and a server running on the machine in an admin account (the code i am writing). They want people to enter their information but they dont want someone pressing down on the email input box to display ppls email address. Is there a way i can disable this through code in IE? (i believe they are using 6 but they may use 7 or 8).
推荐答案
使用非标准自动完成
属性:
autocomplete="off"
适用于所有现代浏览器。将打破HTML 4验证,虽然。 <一href=\"http://stackoverflow.com/questions/582244/is-there-a-w3c-valid-way-to-disable-autocomplete-in-a-html-form\">No围绕方式。将在 HTML 5 。
参考:
-
Mozilla的:如何关闭表格自动完成
IE:在HTML表单 <使用自动完成/ p>
这篇关于是否有可能禁用自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!