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


Groups > comp.lang.javascript > #14171

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

Newsgroups comp.lang.javascript
Subject Re: FAQ Topic - How can I disable the back button in a web browser? (2012-05-26)
From "Evertjan." <exjxw.hannivoort@interxnl.net>
References <4fc00efa$0$295$14726298@news.sunsite.dk> <ipd699-f7i.ln1@luuk.invalid.lan>
Message-ID <XnsA05F6F7FA2CD0eejj99@194.109.133.133> (permalink)
Date 2012-05-26 08:57 +0000

Show all headers | View raw


Luuk wrote on 26 mei 2012 in comp.lang.javascript:

> 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?
> 

L'histoire se répète, parbleu! 

Niccolò Machiavelli explained this was considered not very usefull 
in his age and in any other, because some points of history can be
unscrupulously overwritten, or not even filled faithfully: 

"On dit et cela se répète sans beaucoup de réflexions, que les traités
sont inutiles, puisqu'on n'en remplit presque jamais tous les points, et
qu'on n'est pas plus scrupuleux là-dessus dans notre siècle qu'en tout
autre." 

<http://machiavelli.letteraturaoperaomnia.org/critica/machiavelli_critica
_l_antimachiavel.html> 

So do like Niccolò, never trust browsers, even non-IE, to do as 
promissed.

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Back to comp.lang.javascript | Previous | Next — Previous 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