Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

back button on the browser

 
andy nan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to know ,by any means is it possible to disallow the user to go to the parent page by clicking on the back button on the browser by Just using HTML and JavaScript
Please help
Andy
 
sunitha reghu
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using js u can disable but users can always rt click mouse and can select the back. So in a broad sense its not practical
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a link, I do not recommend you use this since it is not relaible and not user friendly.
http://www10.brinkster.com/A1ien51/basics/backbutton.htm
You can also look into document.location.href.replace = "yourlink.htm"
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic