Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #14170

Re: FAQ Topic - How can I disable the back button in a web browser? (2012-05-26)

Date 2012-05-26 09:36 +0200
From Luuk <luuk@invalid.lan>
Newsgroups comp.lang.javascript
Subject Re: FAQ Topic - How can I disable the back button in a web browser? (2012-05-26)
References <4fc00efa$0$295$14726298@news.sunsite.dk>
Message-ID <ipd699-f7i.ln1@luuk.invalid.lan> (permalink)

Show all headers | View raw


On 26-05-2012 01:00, FAQ server wrote:
> -----------------------------------------------------------------------
> 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/
> 

How does:
"The browser's history cannot be modified."
relate to:
"to replace the current page in the history."

If history cannot be modified, it also should not be possible to replace
an item in history?

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FAQ Topic - How can I disable the back button in a web browser? (2012-05-26) "FAQ server" <javascript@dotinternet.be> - 2012-05-25 23:00 +0000
  Re: FAQ Topic - How can I disable the back button in a web browser? (2012-05-26) Luuk <luuk@invalid.lan> - 2012-05-26 09:36 +0200
    Re: FAQ Topic - How can I disable the back button in a web browser? (2012-05-26) "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-05-26 08:57 +0000

csiph-web