Forum Moderators: coopster

Message Too Old, No Replies

Refresh page after hitting back button

Refresh page after hitting back button

         

knippysing

2:14 pm on Jul 10, 2006 (gmt 0)

10+ Year Member



I have a page with Dropdowns that are linked to a database.
After selecting one of the options and going to the next page, it will display the results of that dropdown item as pulled from the database.

If a user hits the back button, then selects a different option and hits "submit", what is listed is the results of the first selection AND the results of the second selection.
Is there a way to either:
1. Refresh the page upon hitting the back button on the browser
2. upon hitting the back button, the browser forgets the selection previouslly made.
?

thanks!

Iguana

4:34 pm on Jul 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The (javascript) onload event will run in a page even when it has been arrived at with a Back button. You could initialise the page then.