Preventing the use of the "back" button

  • Thread starter Thread starter Jonathan Blitz
  • Start date Start date
J

Jonathan Blitz

Is there any way to prevent the use of the back button.

I want the user to logon and from then on I don't want the user to be ab le
to go "back" to pages he has gone through.
The only place he can go back to is the longon screen.

Jonathan Blitz
AnyKey Limited
Israel
 
Open the logon page in a new window

--



| Is there any way to prevent the use of the back button.
|
| I want the user to logon and from then on I don't want the user to be ab le
| to go "back" to pages he has gone through.
| The only place he can go back to is the longon screen.
|
| Jonathan Blitz
| AnyKey Limited
| Israel
|
|
 
Seems I didn't explain enough.

I need to prevent the user navigating around my site using the back button.

For example, if he got to page A and then B I do not want the user to be
able to press the back button and return to page A.
I want the user to only use buttons I present on the page.

Jonathan Blitz
AnyKey Limited
Israel
 
I need to prevent the user navigating around my site using the back
button.
You basically can't. That is what it there for. You can use server-side
programming to redirect the user when they
use the back button.
For example, if he got to page A and then B I do not want the user to be
able to press the back button and return to page A.
I want the user to only use buttons I present on the page.
Then make a desktop application instead.

Bob Lehmann
 
Jonathan Blitz said:
Seems I didn't explain enough.

I need to prevent the user navigating around my site using the back button.

For example, if he got to page A and then B I do not want the user to be
able to press the back button and return to page A.
I want the user to only use buttons I present on the page.

Jonathan Blitz
AnyKey Limited
Israel

You could hide the toolbar using JavaScript, but that's typically frowned
upon as a usability faux pas.

Here's a link to a JavaScript generator that opens a page in a new window.
The generated code will show you what you need to use to hide different
browser window element.

Hope that helps!
 
Well, yeah...but I thought he might want to just see the code and write his
own. :)

--
Jack Brewster - Microsoft MVP - FrontPage

Jim Cheshire said:
Or use Spawn! :)

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003
 
Thanks,

but you forgot the link :)

Jonathan

Jack Brewster said:
You could hide the toolbar using JavaScript, but that's typically frowned
upon as a usability faux pas.

Here's a link to a JavaScript generator that opens a page in a new window.
The generated code will show you what you need to use to hide different
browser window element.

Hope that helps!
 
Hi Jonathan,

I believe you explained it just fine. If you set a cookie for the pages just
visited then if that cookie redirects it will negate the use of the back
button. That will accomplish the same result.
 
But if cookies are disabled or disallowed for the domain, etc., then the
browser's back button would still function as designed.

--

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

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
I was thinking the same thing! Spawn will write the code into his page and
then he can change it as desired. The code is Spawn is more robust than
that offered by other tools. For example, with Spawn he can see the code to
allow for percentages for window size, etc.

I'm partial. :)

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003


Jack Brewster said:
Well, yeah...but I thought he might want to just see the code and write his
own. :)

--
Jack Brewster - Microsoft MVP - FrontPage

Jim Cheshire said:
Or use Spawn! :)

--
Jim Cheshire
Jimco Add-ins
Add-ins for FrontPage 2000-2003
http://www.jimcoaddins.com
===============================
Co-author of Special Edition
Using Microsoft FrontPage 2003
to
 
Back
Top