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?
Asked
Active
Viewed 2,668 times
2 Answers
2
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.

Community
- 1
- 1

waterlooalex
- 13,642
- 16
- 78
- 99
-2
That i s not a browser behavior, it depends on the technology/framework you use

Rony
- 9,331
- 2
- 22
- 22
-
This is incorrect. Go here: http://www.formnut.com/examples.php, enter "Bob" into the "your name" field, press submit, press back, see "bob" still in the form, hit view-source to confirm "bob" is not in the source. – waterlooalex Nov 22 '10 at 18:50
-
@AlexBlack : I agree with you. This is NOT a framework feature. But rather a browser feature. Actually, if your framework tries to add value, they seem to be overriden by the browser's cached values! which sucks in some cases. – Adriano Jul 29 '14 at 15:12