Disable back button

G

Guest

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.
 
S

Steve C. Orr [MVP, MCSD]

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.
 
Y

Yunus Emre ALPÖZEN

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 said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,230
Latest member
LifeBoostCBD

Latest Threads

Top