U
Ubi
I have a popup and I would like to capture the close window event.
How can I do that in javascript?
Daniele
How can I do that in javascript?
Daniele
Ubi said:I have a popup and I would like to capture the close window event.
How can I do that in javascript?
Daniele
Hmm. I know what this smells like.
Ubi said:Does it smell like teen spirits? ;-)
I have a web tv:
http://www.cinemaitaliano.info/tv/
I would like to know for how long a visitor stays watching.
I am logging in the database the time when the user opens the window.
I would like to log the time he closes the window, but I don't know how. I
suppose I have to detect the close windows event.
Daniele
Smelled like those nasty ad popups that won't go away initially.
You can log it easily from the popup itself. Just attach a function to
window.onunload and it can "ping" your tracking system. Or it can make a
call to the parent (opener) window to say it's about to close.
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. After that, you can post your question and our members will help you out.