Add inside "script" tag
function closeSession()
{
//capturing ALT + F4
if (event.altKey==true && event.keyCode==0 )
{
document.location.href="Logout.aspx";
//window.opener="";//To avoid the confirm msg("The Web page you are viewing is trying to close the window") while window close.
//window.close();
}
Xwidth=window.document.body.offsetWidth-window.event.clientX;
YHeight=window.event.clientY;
if(Xwidth<=30&&YHeight<0)
{
document.location.href="Logout.aspx";
}
}
window.onbeforeunload = closeSession;
Tuesday, May 26, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment