hello,
i'd like to perform some actions when my window is closing or reloading, but I don't know how to detect these events, is there a way to do it?
thanks
well, to detect resizing just use window.onResize
I do not know how you can detect window closing. --------------------------------------------------
Goals are dreams with deadlines
wood,
don't those apply to the document? like, if a person goes to a new url in the same window, the onUnload will be fired?
I thought that she asks how to detect when the actual phisycal window is closed.
Hmm, may be I misundrestood. --------------------------------------------------
Goals are dreams with deadlines
thanks wood, thanks valeriav!
the method onunload works for me because i need to close a child window when its parent closes. i know the parameter 'dependent' for 'open' but it doesn't do anything and the child remains opened.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.