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

FAQ Topic - How can I disable the back button in a web browser? (2008-04-17)

P: n/a
-----------------------------------------------------------------------
FAQ Topic - How can I disable the back button in a web
browser?
-----------------------------------------------------------------------

You can't. The browser's history cannot be modified. However, you
can use ` location.replace(url); ` in some browsers to replace
the current page in the history.

http://msdn2.microsoft.com/en-us/library/ms536712.aspx

http://docs.sun.com/source/816-6408-...on.htm#1194240
--
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by http://www.pair.com.

Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
By using appropriate cache-control http header, you can force browser
to reload your document from server when user hits "Back", and ignore
cached page.
On Apr 17, 6:00*am, "FAQ server" <javascr...@dotinternet.bewrote:
-----------------------------------------------------------------------
FAQ Topic - How can I disable the back button in a web
browser?
-----------------------------------------------------------------------

You can't. The browser's history cannot be modified. However, you
can use ` location.replace(url); ` in some browsers to replace
the current page in the history.

http://msdn2.microsoft.com/en-us/library/ms536712.aspx

http://docs.sun.com/source/816-6408-...on.htm#1194240

--
*Postings such as this are automatically sent once a day. *Their
*goal is to answer repeated questions, and to offer the content to
*the community for continuous evaluation/improvement. *The complete
*comp.lang.javascript FAQ is athttp://jibbering.com/faq/index.html.
*The FAQ workers are a group of volunteers. *The sendings of these
*daily posts are proficiently hosted byhttp://www.pair.com.
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.