Using OnUnLoad()

Discussion in 'Javascript' started by Simon Wigzell, Nov 6, 2003.

  1. 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!
     
    Simon Wigzell, Nov 6, 2003
    #1
    1. Advertisements

  2. 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
     
    Thomas 'PointedEars' Lahn, Nov 12, 2003
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.