unload()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pierre Laporte

    unload()

    I would like to use the unload() event to keep users in my pages unless they
    click on the EXIT button I put in my web application.
    Can anyone help me there, especially how I can differentiate the click on a
    form button or on a URL that belongs to my web app from the click on
    browser's buttons like Back, Next, Refresh...
    Thanks.
    Pierre


  • David Dorward

    #2
    Re: unload()

    Pierre Laporte wrote:
    [color=blue]
    > I would like to use the unload() event to keep users in my pages unless
    > they click on the EXIT button I put in my web application.[/color]

    Not possible. http is stateless, live with it.

    (So have your application time out logins rather then waiting for users to
    log out explicitly)


    --
    David Dorward http://dorward.me.uk/

    Comment

    • rf

      #3
      Re: unload()


      "Pierre Laporte" <laporte@plapor te.net> wrote in message
      news:3f6bdedb$0 $13294$626a54ce @news.free.fr.. .[color=blue]
      > I would like to use the unload() event to keep users in my pages unless[/color]
      they[color=blue]
      > click on the EXIT button I put in my web application.[/color]

      With all due respect: how bloody rude. They have just left your site, let
      them. This is just like locking the door on your shoe shop when you see a
      customer about to walk out. You will guarantee that visitors never come
      back.
      [color=blue]
      > Can anyone help me there, especially how I can differentiate the click on[/color]
      a[color=blue]
      > form button or on a URL that belongs to my web app from the click on
      > browser's buttons like Back, Next, Refresh...[/color]

      You can't.

      You also can't tell if your viewer has simply turned her computer off.

      Cheers
      Richard.


      Comment

      Working...