HTML form values and 'Back' button

前端 未结 2 1908
借酒劲吻你
借酒劲吻你 2021-01-13 19:55

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?

相关标签:
2条回答
  • 2021-01-13 20:17

    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?

    0 讨论(0)
  • 2021-01-13 20:27

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

    0 讨论(0)
提交回复
热议问题