HTML form values and 'Back' button

被刻印的时光 ゝ 提交于 2019-12-19 09:12:50

问题


How can one retain HTML form info when hitting the back button? Is this a default HTML or Browser behavior? Or is it Browser dependent?


回答1:


It is default browser behavior, but ONLY if the page containing the form is cache-able, e.g. has headers set such that the browser is allowed to cache it.

How does SO's form remember previous input values?




回答2:


That i s not a browser behavior, it depends on the technology/framework you use



来源:https://stackoverflow.com/questions/1036782/html-form-values-and-back-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!