By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,477 Members | 1,612 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,477 IT Pros & Developers. It's quick & easy.

Browser Close event Problem

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <5d**************************@posting.google.com >,
na******@rediffmail.com (Navin) writes:
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 .


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
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.