PDA

View Full Version : Can I override the refresh button?


apchar
05-25-2004, 01:54 AM
I've seen variants of this question in searching past posts but nothing that answered it.
I have a page with 2 frames, a navigation frame and a content frame. Clicking a link in the nav frame sends one of a boatload of pages to the content frame. But if the user hits his browsers refresh button the content frame jumps back to the opening page.
Is there some way to overrride the browsers refresh button so it just reloads one frame?
Thanks.
:confused:

Willy Duitt
05-25-2004, 02:24 AM
You can try dynamically updating the content frame source in the frameset. So that the current page is refreshed not the default source page.

apchar
05-25-2004, 11:48 PM
How do I do that? Unless I can override it the refresh button is going to do what it wants to do. If I had my own refresh button I could see how to do this, but I have to deal with the browsers refresh button.
:confused:

Willy Duitt
05-26-2004, 03:00 AM
Something like this or a modification thereof:
http://javascript.internet.com/navigation/dynamic-frameset.html