Click to See Complete Forum and Search --> : 2 frames and browser back


mvandek2
09-18-2003, 08:10 AM
This without a doubt has been sorted out before but I cannot find the right code.

With a button in frame 1 I want to change the HTML files in frames 2 and 3 in one click and still get the original html files back in frames 2 and 3 with one click on the back button of the browser.

This back button is the trouble, it has to do with the history of each frame.

Thanks in advance !

Mark

Khalid Ali
09-18-2003, 08:18 AM
this is how you can access frames in a frameset

parent.frameName.history.go(-1)

the above will take you one page back in history for the specified frame

mvandek2
09-18-2003, 08:25 AM
I know, but I mean using the browser back button.

This should bring you back to the original pages with just one click (not 2).

Khalid Ali
09-18-2003, 08:27 AM
That means that you are replcing entries in the history array by using

location.replace....don't use the above to go to next pages