How to detect if user has close the browser?

Discussion in 'ASP .Net' started by Lord2702, Oct 9, 2004.

  1. Lord2702

    Lord2702 Guest

    Fri. Oct. 08, 2004 11:10 PM PT

    In ASP.NET application, How to detect that user has close the browser, IE or
    Netscape, or may be any other ?

    Thanks,
    Lord2702, Oct 9, 2004
    #1
    1. Advertising

  2. Use Javascript

    "Lord2702" <> wrote in message
    news:#...
    > Fri. Oct. 08, 2004 11:10 PM PT
    >
    > In ASP.NET application, How to detect that user has close the browser, IE

    or
    > Netscape, or may be any other ?
    >
    > Thanks,
    >
    >
    Patrick.O.Ige, Oct 9, 2004
    #2
    1. Advertising

  3. Lord2702

    Lord2702 Guest

    Hello Patrick,
    I understand that it requires to use JavaScript, But Can you give some line
    of code, How to do it? Thanks.

    "Patrick.O.Ige" <> wrote in message
    news:...
    > Use Javascript
    >
    > "Lord2702" <> wrote in message
    > news:#...
    > > Fri. Oct. 08, 2004 11:10 PM PT
    > >
    > > In ASP.NET application, How to detect that user has close the browser,

    IE
    > or
    > > Netscape, or may be any other ?
    > >
    > > Thanks,
    > >
    > >

    >
    >
    Lord2702, Oct 9, 2004
    #3
  4. Lord2702

    RJN Guest

    The brwoser provides "onbeforeunload" event and you can use this in the
    body tag to detect if the window is being closed


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    RJN, Oct 10, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sm mehta

    how to detect Browser close event.

    sm mehta, Jul 29, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    5,171
    Steve C. Orr, MCSD
    Jul 29, 2003
  2. Lord2702

    How to detect browser close

    Lord2702, Oct 30, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    15,551
    Ken Dopierala Jr.
    Oct 31, 2004
  3. Replies:
    7
    Views:
    11,931
  4. Iñaki Baz Castillo
    Replies:
    7
    Views:
    839
    Iñaki Baz Castillo
    Jan 12, 2010
  5. Replies:
    0
    Views:
    490
Loading...

Share This Page