Connecting Tech Pros Worldwide Help | Site Map

Browser Close event Problem

Navin
Guest
 
Posts: n/a
#1: Jul 20 '05
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
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Browser Close event Problem


In article <5dc7f532.0309032014.5d3b9803@posting.google.com >,
navinsm2@rediffmail.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
Closed Thread