PDA

View Full Version : Challenging Question : Back Key + Refresh


Leinad
08-27-2002, 02:46 PM
Hi Hi!

I have got a specification of a web site that seems a bit challenging. Basically,

0. assume you are in a certain page within the domain (say page2)
1. when a user click the (browser's) back button,
2. go back to previous page (say page1)
3. page 1 should refresh itself automatically.

is it possible to do that?
I know about the history.go(-1) technique, but I don't think that works... how can I combine it with refresh? notice that, it is page1 that get refreshed... not page 2..

please help me...

ShriekForth
08-27-2002, 05:26 PM
Doesn't <meta http-equiv="Pragma" content="no-cache"> work for you, or are you trying something else? That should force the browser to retrieve the page again.

A window.reload() would do it, but you would need a way to stop it. Someway to track it between pages. With a coockie or in an external window or frame so that it does not get into an endless loop.

ShriekForth