...

View Full Version : Prevent a user going back



vsalinas
12-08-2005, 12:27 PM
Hi All;

Please can anybody tell me how I can do the following:
- Prevent a user press the button 'back' in the browser in order he can't see the previous page or pages anymore.

- or at least, close the current window and open a new window without history when a user press a link...

Thanks...:)

Tynan
12-08-2005, 01:49 PM
http://www.htmlgoodies.com/tutorials/buttons/article.php/3478911

felgall
12-08-2005, 10:18 PM
You can't prevent a person using their back button to go back to the prior page. You can stop pages being loaded into history by loading the replacement page using a Javascript location.href.replace() call.

Bill Posters
12-09-2005, 10:32 AM
Please can anybody tell me how I can do the following:
- Prevent a user press the button 'back' in the browser in order he can't see the previous page or pages anymore.

- or at least, close the current window and open a new window without history
How not to win return visitors.
Why would you even want to fukup the visitor's browsing session like that?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum