Chrome doesn't cache hidden form field values for use in browser history

前端 未结 3 2191
天涯浪人
天涯浪人 2021-01-01 19:33

I have a ASP.Net web form that contains both text box fields and hidden fields. The hidden field values are modified dynamically using client side JavaScript. Posting the fo

3条回答
  •  独厮守ぢ
    2021-01-01 20:13

    You should not rely on this behavior. It is different among browsers, even among browser versions. This behavior is not described in any standards. If you want your fields to have specific values, you can use cookies, or always make requests to the server when page loads, or use more modern methods like local storage (it is not widely supported though).

提交回复
热议问题