<script language="javascript">
function fnUnloadHandler() {
alert("Unload event.. Do something to invalidate users session..");
}
</script>
<body onbeforeunload="fnUnloadHandler()">
………
</body>
<script language="javascript">
function fnUnloadHandler() {
alert("Unload event.. Do something to invalidate users session..");
}
</script>
<body onbeforeunload="fnUnloadHandler()">
………
</body>