Jump to content

Making the back buttion not refresh data. *SOLVED*


pocobueno1388

Recommended Posts

Is there any way I can make it so when a user clicks the 'Back' button it won't refresh the page they are goign to?
right now when I click the back button on my site it says "The page contains POSTDATA...click ok to resend the data".

I know there is some way to get rid of this, but I can't seem to find it again.
The problem with that is there is no one specific path.

I am talking about the 'back' button on their browser. The one in the top left had corner to the left of the refresh button, lol.

I just want it to go back to the last page they were at with out trying to refresh the data on the page.
Well there are couple ways that I can think of that may help with this.

Well a simple way is place this in the body tag

<body onload="javascript:history.go(1);">

This means if there is another entry after the current page in the history object then it will redirect them to that page. Now I am not sure if this will prevent the double posting..

Give it a try..

Good Luck,
Tom

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.