473,382 Members | 1,424 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 2562
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
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
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
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
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
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
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
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
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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.