Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FAQ Topic - How can I disable the back button in a web browser? (2012-01-27)

0 views
Skip to first unread message

FAQ server

unread,
Jan 26, 2012, 7:00:03 PM1/26/12
to
-----------------------------------------------------------------------
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 `self.location.replace(url);` in some browsers to replace
the current page in the history.

<URL: http://msdn.microsoft.com/en-us/library/ms536712%28VS.85%29.aspx>
<URL: http://docs.sun.com/source/816-6408-10/location.htm#1194240>


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/

--

The sendings of these daily posts are proficiently hosted
by http://www.pair.com.

0 new messages