![]() |
![]() |
||||
'); |
|||||
|
JavaScript: Self-Refreshing Frame
Frames would be a great way to allow one portion of a page to change frequently with news updates or other information, but there is one impediment to this strategy: each call to change the contents of the frame adds another item to the browser's "history" object, meaning that each of the frames is added to the list under the "Back" button. If the user wants to navigate with the back button, they will have to cycle through all of those frames again before they get back to the content they want. It's as if we're adding pages to the user's browsing history that they never called. But with this JavaScript I've managed to work around that problem and allow the frame to refresh itself with new content while not affecting the browser's history. There is no live example of this techique at this time except for the one below. Example |
||||