html禁止清除input文本输入缓存
2014-04-15 15:27
344 查看
原文: 点击打开链接
多数浏览器默认会缓存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>
多数浏览器默认会缓存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文本框禁止输入问题
- html禁止缓存的方法,asp禁止缓存的方法,php禁止缓存的方法,jsp禁止缓存的方法
- C# 清除文本中的HTML标签
- 限制HTML的input只能输入数字、英文、汉字...
- html禁止缓存代码
- 使用html5+的plus清除缓存的文件
- kettle中Get Data from XML , Jason Input , 文本文件输入 使用示例