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

Using OnUnLoad()

P: n/a
I'm using OnUnLoad in my asp web pages body tag because I want to set some
values if someone exits the page by means other than using the built in menu
or close button. Probem is it is also being triggered by a refresh. Is it
possible for the function that it calls to get the nature of the event that
has caused it to be called? Last mouse click location or something. Then I
can just ignore all events other than clicking the top right X or using
File/Close. Thanks!
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Simon Wigzell wrote:
I'm using OnUnLoad in my asp web pages body tag because I want to set some
values if someone exits the page by means other than using the built in menu
or close button. Probem is it is also being triggered by a refresh. Is it
possible for the function that it calls to get the nature of the event that
has caused it to be called?


No, AFAIS not even IE has a proprietary event handler for that. But tell us
what you are exactly trying to achieve. Maybe you are following a wrong
approach.
PointedEars
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.