html禁止清除input文本输入缓存
2016-11-09 00:00
399 查看
多数浏览器默认会缓存input的值,只有使用ctl+F5强制刷新的才可以清除缓存记录。
如果不想让浏览器缓存input的值,有2种方法:方法一:
在不想使用缓存的input中添加 autocomplete="off";
eg: <input type="text" autocomplete="off" name="test" />
方法二:
在 input 所在的form标签中添加 autocomplete="off";
eg:
<form action="#" autocomplete="off">
<input type="text" autocomplete="off" name="test" />
</form>
相关文章推荐
- html禁止清除input文本输入缓存
- html禁止清除input文本输入缓存的两种方法
- html禁止清除input文本输入缓存
- html禁止清除input文本输入缓存
- html禁止清除input文本输入缓存
- html禁止Input文本输入缓存的两种方法
- HTML禁止清除input文本框输入缓存
- HTML中Input输入特殊字符自动清除,只能输入正整数和小数的正则表达式
- 在html的input文本输入框中,无法正确显示单引号和双引号的问题
- HTML之禁止输入文本
- html中的input文本框禁止输入问题
- html 中 input 禁止输入中文
- 在html的input文本输入框中,无法正确显示单引号和双引号的问题
- 【转自csdn】禁止操作者在文本框中粘贴文本,要求他们必须手工输入的实现
- ASP.NET中输入文本的HTML解析办法
- 禁止html页面中的缓存
- jQuery版本的文本输入框检查器Input Check
- input type=file 标签禁止让用户手动输入
- 如何禁止用户在文本输入框中输入数字