How to make HTML page NOT to be included in window.history()?

Discussion in 'Javascript' started by contactabbas@gmail.com, Nov 28, 2005.

  1. Guest

    Hi Gurus,

    How can I make an HTML page NOT to be included in window.history()?

    My requirement : Suppose the user navigates from :
    Page A --> Page B --> Page C and presses a browser "Back" btn while on
    page C, s/he should be taken back to page A (not page B). So, I should
    tell that I donot want to store page B in window.history(). How can I
    do this?

    Thanks, Abbas
    , Nov 28, 2005
    #1
    1. Advertising

  2. Mick White Guest

    wrote:
    > Hi Gurus,
    >
    > How can I make an HTML page NOT to be included in window.history()?
    >
    > My requirement : Suppose the user navigates from :
    > Page A --> Page B --> Page C and presses a browser "Back" btn while on
    > page C, s/he should be taken back to page A (not page B). So, I should
    > tell that I donot want to store page B in window.history(). How can I
    > do this?
    >
    > Thanks, Abbas
    >


    location.replace(url)

    perhaps?
    Mick
    Mick White, Nov 28, 2005
    #2
    1. Advertising

  3. Randy Webb Guest

    said the following on 11/28/2005 12:57 PM:
    > Hi Gurus,
    >
    > How can I make an HTML page NOT to be included in window.history()?


    Don't open it.

    > My requirement : Suppose the user navigates from :
    > Page A --> Page B --> Page C and presses a browser "Back" btn while on
    > page C, s/he should be taken back to page A (not page B). So, I should
    > tell that I donot want to store page B in window.history(). How can I
    > do this?


    document.location.replace() and then deal with it if JS is disabled.

    --
    Randy
    comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
    Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
    Randy Webb, Nov 28, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. divya
    Replies:
    6
    Views:
    291
    Anthony Jones
    Oct 13, 2006
  2. Sam Stephenson
    Replies:
    1
    Views:
    217
    Andrew Walrond
    Jun 18, 2005
  3. Replies:
    2
    Views:
    280
    nutso fasst
    Oct 17, 2006
  4. Niall
    Replies:
    3
    Views:
    157
    Niall
    Dec 6, 2006
  5. jodleren
    Replies:
    1
    Views:
    108
    jodleren
    Sep 18, 2008
Loading...

Share This Page