|
AJAX on page close/leave
Has anyone ever done anything that involved executing code when someone either closes or leaves a page? Meaning some closes a tab, clicks a link, etc...
Just curious as to how you handled it. I'm looking at using window.onunload and sending a SJAX (intentional spelling) request when someone leaves to track some analytics stuff. Only problem is I'm finding browser support various greatly to the point it's pretty much unreliable. Any suggestions?
|