Disabling the back action???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cem Louis

    #1

    Disabling the back action???

    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
  • Jim Ley

    #2
    Re: Disabling the back action???

    On 25 Oct 2004 17:03:48 -0700, cemlouis@phreak er.net (Cem Louis)
    wrote:
    [color=blue]
    >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???[/color]

    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.

    Comment

    • Stewart Gordon

      #3
      Re: Disabling the back action???

      Cem Louis wrote:
      [color=blue]
      > Hi,
      >
      > In my site I made a db control with php for users not to go back.[/color]

      What do you mean by this?
      [color=blue]
      > 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???[/color]

      You can't. I've a feeling you might be looking for this:



      Stewart.

      Comment

      • Randy Webb

        #4
        Re: Disabling the back action???

        Cem Louis wrote:[color=blue]
        > Hi,
        >
        > In my site I made a db control with php for users not to go back.[/color]

        No, you just think you did.

        [color=blue]
        > But a user told me that it doesn't work this with opera browsers.[/color]

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

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

        [color=blue]
        > How can I do this with javascript???[/color]

        Again, you can't.
        [color=blue]
        > Thank you,[/color]

        You are welcome.

        --
        Randy
        comp.lang.javas cript 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?

        Comment

        Working...