Disable brower Back button

W

Waldy

Hi there,
is it possible to disable the browser back button, or trap
the event and stop it?
 
P

Patrice

No. It's likely best to solve the initial problem.

For example, if this is to prevent coming back to a past page, it's likely
best to avoid putting the page in the history or to handle coming back to
this page (the user could also put the page in its favorites and so own).

What is the exact problem ?

Patrice
 
S

Steve C. Orr [MVP, MCSD]

No.
One way that can work in some situations is to open a new window. This new
window will have no history, therefore the back button will be disabled.
 
W

Waldy

I put a history.forward() script command at the top of the pages which I
don't want users going back to. That seems to work OK.
 

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

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top