PDA

View Full Version : Clearing "Back" Queue Entry


zola70
06-29-2007, 06:05 PM
Greetings all. I have searched the site for an answer, but found nothing.

I have a page with an iframe in it. The pages I display in the iframe link to other pages. That builds up an intolerable list of "back" pages in the navigation queue.

I would like to decrement the queue by one each time I display a new page in the iframe. Another way to say that, I'd like to delete the entry in the navigation queue that is automatically created when the new page is loaded.

Imagine that PageA calls PageB. PageB contains the iframe. After playing around with the mulitiple iframed pages, I'd like the browser's "Back" button to return to PageA (otherwise, the user would have to hit "Back" for every page that had been displayed in the iframe).

Is this easily doable? Thanx much!

Jon Hanlon
07-01-2007, 10:49 PM
You cannot modify the History list in a browser.
There is, however, a replace method which replaces the current page in a window, without adding to the history.
http://msdn2.microsoft.com/en-us/library/ms536712.aspx

zola70
07-16-2007, 08:37 AM
Thanks very much for the reply, Jon. I'm guessing that methods aren't implemented as html. Would I make the hyperlink call to the new page (using this methog) via some javascript containing the method?

I'm not a programmer, just a barely-basic html idiot.

Jon Hanlon
07-16-2007, 06:08 PM
History object methods aren't exposed because otherwise rogue sites could re-stock your history list, so when you hit the Back button you'd be taken to some weird page you'd never seen before.

Google "Javascript location replace" for examples of this method.