1
我有多個文本框輸入信用卡和安全編號。但我不想讓瀏覽器記住客戶輸入的數字。Firefox在.NET中記住了提前輸入的文本框值
注意:該頁面完全通過使用javascript發送任何操作的Ajax請求。
指:Is there a W3C valid way to disable autocomplete in a HTML form?
我有多個文本框輸入信用卡和安全編號。但我不想讓瀏覽器記住客戶輸入的數字。Firefox在.NET中記住了提前輸入的文本框值
注意:該頁面完全通過使用javascript發送任何操作的Ajax請求。
指:Is there a W3C valid way to disable autocomplete in a HTML form?
我相信你可以使用HTML屬性autocomplete
與價值off
。
<input ... autocomplete="off" />
請參考http://stackoverflow.com/questions/582244/is-there-a-w3c-valid-way-to-disable-autocomplete-in-a-html-form – Devjosh