防止Firefox记住用Meta标签刷新的输入值 [英] Preventing Firefox from remembering the input value on refresh with Meta tag

查看:165
本文介绍了防止Firefox记住用Meta标签刷新的输入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我用Firefox刷新一个页面时,复选框,输入栏等等的值将被保留。



有没有一种方法可以使Firefox不让它们保持它们,使用没有JavaScript的元标记?

解决对于输入标记,可以设置属性 autocomplete

 < input type =textautocomplete =off/> 

您也可以为表单使用自动完成功能。


When I refresh a page with Firefox, the values of the check boxes, input fields etc. are kept.

Is there a way to make Firefox not keep them, using a meta tag without JavaScript?

解决方案

For a input tag there's the attribute autocomplete you can set:

<input type="text" autocomplete="off" />

You can use autocomplete for a form too.

这篇关于防止Firefox记住用Meta标签刷新的输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆