window.onbeforeunload = function() { logout();};
function Logout()
{
window.location.href = "logout URL";
return false;
}
My requirement is: when user clicks close button, user should be logged out. It is working fine in IE. But not working in Chrome.
Can any one please suggest.