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

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

问题描述

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

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

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

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 在刷新时记住输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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