Disabling the back action???

C

Cem Louis

Hi,

In my site I made a db control with php for users not to go back. But
a user told me that it doesn't work this with opera browsers. So how
can I disable go back action that can be occured by keyboard and
mouse??? How can I do this with javascript???

Thank you,
Cem Louis
 
J

Jim Ley

In my site I made a db control with php for users not to go back. But
a user told me that it doesn't work this with opera browsers. So how
can I disable go back action that can be occured by keyboard and
mouse??? How can I do this with javascript???

You can't, it's impossible, you need to know which keycode is bound to
the back button, and seen as that could be all sorts of things
(specific keys on keyboards, extra buttons on mice etc. etc.) you
can't stop them doing it.

You've got to design your app to cope with it - this is all answered
in the FAQ of course.

Jim.
 
R

Randy Webb

Cem said:
Hi,

In my site I made a db control with php for users not to go back.

No, you just think you did.

But a user told me that it doesn't work this with opera browsers.

Thats the way it should be. Don't try to destroy the functionality of my
browser. In the end, you will always fail.
So how can I disable go back action that can be occured by
keyboard and mouse???

You can't. Redesign your app so that it handles me going back and forth.

How can I do this with javascript???

Again, you can't.
Thank you,

You are welcome.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
 

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
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top