|
Posted by Ben C on 10/01/06 10:27
On 2006-09-30, gkorland@gmail.com <gkorland@gmail.com> wrote:
> Hi,
>
> I have a page with two frames.
> I want to add backward & forward buttons to each of the frames.
> How can I control each of the frames history?
I would suggest put the back and forward buttons for the frames outside
the actual frames, in the top-level document.
In the click handlers for those buttons, do this kind of thing:
window.frames["firstFrame"].history.back();
window.frames["firstFrame"].history.forward();
etc.
This way you're accessing the history objects belonging to the windows
of each frame.
Navigation:
[Reply to this message]
|