Forum Moderators: open
I encountered a client site(frame site) in which I have to use two frames in a page.
The requirement is I have to provide with back and forward button in both frames. If I click the back button it should show only the page last visited in that particular frame.
Is it possible without Server side session maintenance or cookie manipulations?
Is it posible with plain
Javascript?
-Suresh Babu
So your job should be doable, as long as old cross-browser compatibility isn't required. You want to be sure the javascript or jscript is directed to the frame's history itself, rather than the "state" history of the entire frameset which the native Back Button would access.
I'd try something like this - within a frame named "display"
<a href="javascript:parent.display.history.go(-1)">Back</a>