By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,377 Members | 1,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,377 IT Pros & Developers. It's quick & easy.

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

P: n/a
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 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
co**********@gmail.com 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/
Nov 28 '05 #2

P: n/a
co**********@gmail.com 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
Nov 28 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.