English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

My Problem is if I have a web site, is it possible that I can block a user for going back to previos page ?? The solution I am looking for should be in java/javascript domain.

2007-03-23 00:49:41 · 3 answers · asked by nikunj r 1 in Computers & Internet Programming & Design

3 answers

While I do not recommend using this, ever, under any circumstances, you can use document.history.go(1); ... just put that on every page, and it will force users to the farthest point in their navigation path (i.e., if they click back it will immediately push them forward again). Obviously it only works if they have JavaScript enabled.

This technique was used in the online banking application for a very, very major bank that I used to work for. Needless to say, their online banking was/is terrible.

2007-03-23 03:42:12 · answer #1 · answered by Rex M 6 · 0 1

use:
document.location.replace( 'somepage.htm' );
for all your page links.

This is *anti-accessibility* though - I do not recommend the practice.

2007-03-23 08:10:06 · answer #2 · answered by Fabian 2 · 0 1

You can't.

2007-03-23 10:38:36 · answer #3 · answered by Anonymous · 0 1

fedest.com, questions and answers