Click to See Complete Forum and Search --> : OnUnload event


JasonY
11-27-2002, 07:20 PM
The OnUnload event is triggered by either closing the browser or leaving the page. I was wondering is there a way to differentiate how the OnUnload event is triggered (ie. browser close or leaving the page)?

Esch
04-04-2003, 06:16 PM
Is there a way to capture, from the onunLoad event, if the user is leaving you Domain?

I'm trying to capture the effect of a user leaving my site to do some post clean up. I'm using frames and I am using the onunload event in the top level frame. I've noticed it works great unless a user hits the refresh button or gets bounced to another sub-domain server from the load balancing software in place.

I would like to capture the event of leaving my domain, and run my cleanup based on that.