Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #14169 > unrolled thread
| Started by | "FAQ server" <javascript@dotinternet.be> |
|---|---|
| First post | 2012-05-25 23:00 +0000 |
| Last post | 2012-05-26 08:57 +0000 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.javascript
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
| From | "FAQ server" <javascript@dotinternet.be> |
|---|---|
| Date | 2012-05-25 23:00 +0000 |
| Subject | FAQ Topic - How can I disable the back button in a web browser? (2012-05-26) |
| Message-ID | <4fc00efa$0$295$14726298@news.sunsite.dk> |
----------------------------------------------------------------------- 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.
[toc] | [next] | [standalone]
| From | Luuk <luuk@invalid.lan> |
|---|---|
| Date | 2012-05-26 09:36 +0200 |
| Message-ID | <ipd699-f7i.ln1@luuk.invalid.lan> |
| In reply to | #14169 |
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?
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exjxw.hannivoort@interxnl.net> |
|---|---|
| Date | 2012-05-26 08:57 +0000 |
| Message-ID | <XnsA05F6F7FA2CD0eejj99@194.109.133.133> |
| In reply to | #14170 |
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)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web