473,480 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Disable back button

Hi, just wondering if there is a way to disable the back button of the
browser as I have a logoff page and would like to not allow the back
operation? Guessing there may be a way to do it through java script.
--
Paul G
Software engineer.
Nov 19 '05 #1
3 2567
You'd think there would be, but there's not.
A common approach is to close the window, and open a new one if you must.
This new window will have no history so the back button will be disabled.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Hi, just wondering if there is a way to disable the back button of the
browser as I have a logoff page and would like to not allow the back
operation? Guessing there may be a way to do it through java script.
--
Paul G
Software engineer.

Nov 19 '05 #2
ok thanks for the information. Do you use java script on the client side to
close the window and if so what event corresponds to the back button
selection?

"Steve C. Orr [MVP, MCSD]" wrote:
You'd think there would be, but there's not.
A common approach is to close the window, and open a new one if you must.
This new window will have no history so the back button will be disabled.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
Hi, just wondering if there is a way to disable the back button of the
browser as I have a logoff page and would like to not allow the back
operation? Guessing there may be a way to do it through java script.
--
Paul G
Software engineer.


Nov 19 '05 #3
It is possible to disable history logging. But you should do every
navigation using javascript. It is the difference between
window.location.reload and window.location.replace.

Replace overwrites the history entry while reload allows browser to log
history. Also another difference between them is browser supporting
versions.

--
Thanks,
Yunus Emre ALPÖZEN

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com...
ok thanks for the information. Do you use java script on the client side
to
close the window and if so what event corresponds to the back button
selection?

"Steve C. Orr [MVP, MCSD]" wrote:
You'd think there would be, but there's not.
A common approach is to close the window, and open a new one if you must.
This new window will have no history so the back button will be disabled.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:BC**********************************@microsof t.com...
> Hi, just wondering if there is a way to disable the back button of the
> browser as I have a logoff page and would like to not allow the back
> operation? Guessing there may be a way to do it through java script.
> --
> Paul G
> Software engineer.


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2742
by: Rob Smeets | last post by:
Hi I was wondering, is it possible to disable the back button in internet explorer. Our Website is hosting a Siebel website, and the problem is that Siebel has problems with the use of the back...
6
3135
by: nntp | last post by:
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them. <a disabled...
2
13240
by: techfuzz | last post by:
I scoured this group and others looking for the best way to disable a button after the first click to prevent multiple submissions, but never did find anything that worked like they said it would. ...
14
7158
by: Sinity | last post by:
Anyone knows the method/codes to disable the clicked button after first click by using .aspx-- to prevent people to click many time when waiting for the server response. I tried to do this by...
6
2784
by: Raghu Raman | last post by:
Hi, we are doing an in house project in c#.net(asp.net).We wanted to close our application when ever the user presses the SIGNOUT button. Even though we programtically disconnects them from the...
1
5996
by: Terry Olsen | last post by:
Is there any way to disable the client browser "Back" and "Forward" buttons while on my site? Or how would I go about knowing that a page hit is caused by a back/forward navigation? I have...
16
3400
by: Barry Gilmore | last post by:
Is there a way to disable a button after it is clicked? I am trying to avoid having someone click on it twice while they wait for it to process. Thank you!
9
3974
by: Joe Delphi | last post by:
Hi, When users log out of my web application, I want to disable the back button so that they cannot "back into" the application after they have logged out. Can someone tell me the best way to...
6
29589
by: sspost | last post by:
how can i disable the back button for a browser? I have been reading a lot of forums but cant find any answer to it...other than opening up the page, in which i want to disable the browser in a...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7103
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6758
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4499
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3011
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.