/    Sign up×
Community /Pin to ProfileBookmark

form info on back button

Hello,
I have a form which the user fills up, and hits the submit button. The submit runs a servlelet on the web server ,and a subsequent page is returned.

When the user clicks on the back button , the previous form is again presented. In Netscape , the data initially entered by the user is retained, which is the desired behaviour.
In internet explorer on clicking on the back button, the form is presented again but without the data the user had initialyy eneterd.
What can be done so that IE also behaves like Netscape in this regard .. i.e. user entered data on the form is retained when user clicks on back button.

Thanks a lot?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Phil_KarrasOct 13.2003 — This is a real good question, I only wish I had a real good answer. I've seen this behavior on both IE & NS browsers so I'm not sure why one works the way we want it to and the other does not. I'd first suggest you check IE settings to see if anything makes sense for that behavior.

In one case I went so far as building everything in Perl (or PHP) and the "back" button was my own button on the page which then supplied all the needed info back to the form. A real pain but it works on all JavaScript enabled browsers.
×

Success!

Help @javascript_ss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...