防止Firefox在使用meta标签刷新时记住输入值 [英] Preventing Firefox from remembering the input value on refresh with a meta tag

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

问题描述

当我使用Firefox刷新页面时,复选框,输入字段等的值会保留.

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

有没有办法使用不带JavaScript的元标记使Firefox不保留它们?

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

推荐答案

对于input标签,您可以设置属性autocomplete:

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

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

您也可以为form使用自动完成功能.

You can use autocomplete for a form too.

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

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