Link to home
Start Free TrialLog in
Avatar of juststeve
juststeve

asked on

Save frames state before refresh

Imagine diving into a framed site and surf around abit. You've drilled to a page you are interested in and for one of many possible reasons (script failed...timed out search ... whatever) you hit page refresh.

The site returns to the opening page.

You swear.

Is it possible to save the state of frames...specifically, currently loaded filenames and so as to restore them if refresh is hit.

If it matters, this will be used on an ASP-based site and I wouldn't be surprised if there's an onRefresh event for IE but we'll be serving NS folk as well.

thankx
Avatar of morbiusx
morbiusx

place this code into the desired frames

<a href="javascript:location.reload()" target="_self">*desired word*</a>

it might be much to place it in each frame but its a thought and does work specifically for each frame.

Avatar of juststeve

ASKER

Thankx for the reply morbiusx. The way I read it your code will allow a link to reload the the given frame when a user clicks it.

What I need to deal with is the instance when a user clicks the browser's 'Refresh' button. Currently, all frames reload to the original locations. Problems arise because the user may find it difficult to re-navigate to the page they had been viewing so I want to trap the 'Refresh' button in kinda the same way as trapping the 'Back' button.

thankx


ASKER CERTIFIED SOLUTION
Avatar of dmaryakh
dmaryakh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial