Browser Close event Problem

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

    Browser Close event Problem

    which event is fired when a browser is closed.
    i want to call asp page which delete some files on the server.
    when the browser is closed
    i tired using onunload event of the body tag but it alos get fired
    when a page is refreshed.
    the thing should work in netscape also.
    please advise me .
    regds,
    Navin Mahindroo
  • HikksNotAtHome

    #2
    Re: Browser Close event Problem

    In article <5dc7f532.03090 32014.5d3b9803@ posting.google. com>,
    navinsm2@rediff mail.com (Navin) writes:
    [color=blue]
    >which event is fired when a browser is closed.
    >i want to call asp page which delete some files on the server.
    >when the browser is closed
    >i tired using onunload event of the body tag but it alos get fired
    >when a page is refreshed.
    >the thing should work in netscape also.
    >please advise me .[/color]

    The browser can't differentiate in how the page was unloaded, just that it was.
    Whether by reloading, clicking a favorites link, typing in a new URL, or
    closing the browser, it has no way of telling the difference between any of
    them, just that the page was unloaded.
    --
    Randy

    Comment

    Working...