469,626 Members | 1,241 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

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 2368
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by nntp | last post: by
14 posts views Thread by Sinity | last post: by
6 posts views Thread by Raghu Raman | last post: by
1 post views Thread by Terry Olsen | last post: by
16 posts views Thread by Barry Gilmore | last post: by
9 posts views Thread by Joe Delphi | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.