Disabling the Back Button?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know how to disable the Back button on the top of the browser?
More specifically, I want my users to be able to only go forward in my
website. I don't want them to have the ability to go backwards to pages they
have already seen. If anyone knows how to do this, please let me know.
 
About the only way I know would be to hide the toolbar.
Unfortunately, It doesn't work in all browsers.
Also, I "think" the ability is disabled by XP SP2

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
You can not disable the browser's back button.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
And then only if JavaScript is used to create the browser window.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 
I don't think you want to do this. If I were to visit your website, this would
cause me to leave immediately and never return.

Craig
 
Hi Bruce,
Here's a good technical answer
http://www.aspfaq.com/show.asp?id=2017

My own view is that people are doing you a favour by visiting your site,
you're not doing them a favour by building a site for them. They're putting
money in your pocket, or whatever other motivation you have for building a
site. Would you visit Walmart if they said you can only come in if you visit
this aisle first, then you can only see the next aisle if you've already
been to that aisle.
 
Thanks for the response. In regards to why I want to disable the button,
this site isn't for commerical or recreational use. I am an academic and I'm
trying to build this site for an online behavioral study. If they are
allowed to use the "Back" key, they would be able to look back at information
that I only want them to see one time.
 
Use a pop-up window (Spawn from www.jimcoaddins.com will help create
this) for this section of the site. The pop-up requires JavaScript to
function, but can be set to not have toolbars. However, the Back
function may be available from the right-click menu, which cannot be
disabled in some browsers (e.g. FireFox).
 
Or using JavaScript location.replace for all URLs will not generate a history (so the back key does nothing)
- The replace method does not create a new entry in the history list

See http://irt.org/script/244.htm
--




| Use a pop-up window (Spawn from www.jimcoaddins.com will help create
| this) for this section of the site. The pop-up requires JavaScript to
| function, but can be set to not have toolbars. However, the Back
| function may be available from the right-click menu, which cannot be
| disabled in some browsers (e.g. FireFox).
| --
| Ron Symonds
| Microsoft MVP (FrontPage)
| Reply only to group - emails will be deleted unread.
|
| | > Thanks for the response. In regards to why I want to disable the
| > button,
| > this site isn't for commerical or recreational use. I am an
| > academic and I'm
| > trying to build this site for an online behavioral study. If they
| > are
| > allowed to use the "Back" key, they would be able to look back at
| > information
| > that I only want them to see one time.
| >
| > "Jon Spivey" wrote:
| >
| >> Hi Bruce,
| >> Here's a good technical answer
| >> http://www.aspfaq.com/show.asp?id=2017
| >>
| >> My own view is that people are doing you a favour by visiting your
| >> site,
| >> you're not doing them a favour by building a site for them. They're
| >> putting
| >> money in your pocket, or whatever other motivation you have for
| >> building a
| >> site. Would you visit Walmart if they said you can only come in if
| >> you visit
| >> this aisle first, then you can only see the next aisle if you've
| >> already
| >> been to that aisle.
| >>
| >>
| >> --
| >> Cheers,
| >> Jon
| >> Microsoft MVP
| >>
| >> | >> > Does anyone know how to disable the Back button on the top of the
| >> > browser?
| >> > More specifically, I want my users to be able to only go forward
| >> > in my
| >> > website. I don't want them to have the ability to go backwards
| >> > to pages
| >> > they
| >> > have already seen. If anyone knows how to do this, please let me
| >> > know.
| >>
| >>
| >>
|
|
 
Hi Bruce,

In that case I think Stefan's suggestion about using replace for all links,
eg
instead of
<a href="page.htm">go to this page</a>
do
<a href="page.htm" onclick="location.replace('page.htm'); return false;">go
to this page</a>

would be best, the only slight flaw is that anyone with jaascript disabled
would still be able to use back, there's no way around this
 
Back
Top