Re: Track User information hi.....
if user closed the browser the unload event will not help you to track the user..because if u referesh the page also unload event will fire..
Below code is helpful to track the user while closing the browser
I have done the user tracking by ..
<script language="JavaScript">
<!--
function closeWindow(evt) {
var e = (window.event) ? window.event : evt;
if (e.clientX < 0 && e.clientY < 0)
{
(new Image()).src="logout.php?value=0";
alert("logout")
}
return true;
}
// -->
</script>
</head>
<body onunload="closeWindow(event)" >
but it works only in IE...not FF
Last edited by kingmaker : 08-03-2007 at 05:01 AM.
|