Hi,
Thank you very much for all your responses.
The page I am using is a form that contains a list of information that the user has to fill in. Before the user can go to the next page, the page is validated with javascript to see if any fields are missing. If any fields are missing an error message is displayed using javascript. The user then clicks ok on the error message, and fills in all the fields. Once all the fields are filled in, the user can then go to the next page. The problem I had was that the next page has an HTML "back" button that goes to the previous page. If a validation error had previously occured on the previous page, that error pops up again when I used history.back, even though the page was not loaded yet. So I needed to get rid of the error message popping up again when I go back to the previous page.
I'm not sure if I explained it well enough, but thanks a lot for all you responses. I am currently not using the "history.back" function anymore. I just decided to save the previous forms data in a temporary table and just reload the data that the user entered before they went to the next page.
Thanks a lot again