浏览器刷新行为 [英] Browser refresh behaviour
本文介绍了浏览器刷新行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当用户在浏览器中点击刷新时,它会重新加载页面,但会保留表单字段的内容。虽然我可以看到这是一个有用的默认设置,但它在某些动态页面上可能很烦人,导致用户体验受到破坏。
有没有办法在HTTP头文件或等价,改变这种行为?
解决方案
< input autocomplete =off> ;
When a user hits Refresh on their browser, it reloads the page but keeps the contents of form fields. While I can see this being a useful default, it can be annoying on some dynamic pages, leading to a broken user experience.
Is there a way, in HTTP headers or equivalents, to change this behaviour?
解决方案
<input autocomplete="off">
这篇关于浏览器刷新行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文