Click to See Complete Forum and Search --> : Detecting user leaving site


kristian
02-24-2003, 11:10 AM
Can anybody give me some idea as to how I detect if a user is leaving my website.

I want to run a function whenever a user closes the browser or goes to another domain. I know the 'onunload' javascript event handler can be used for this but it works when navigating inside my domain too...!

I dont use frames...!!!

Any ideas..? :)

netOBSESSIVE
02-24-2003, 11:55 AM
Here is a good place to find a Great one www.essex1.com/people/timothy/js-index.html (http://www.essex1.com/people/timothy/js-index.html)

kristian
02-25-2003, 03:23 AM
Thanks for your help. However, the script this site demonstrates has to use a frameset for it to function properly.

I am hoping for a way to acheive the same functionality without the frameset...!!!

Anybody know of a way...??? I'm stumped...!

Nicodemas
02-25-2003, 03:38 AM
I asked this earlier. I was told no.