各位大侠,小妹在此多谢各位的侠义相助了.
ASP.NET,我要在关闭主窗口时候,改变个人用户登陆表此用户的在线状态.我要找到关闭时触发的事件.该怎么办?
HTML 里
function closeSystem()
{
    window.opener = null ;
    if(window.confirm("确认要退出系统吗?"))
    {
       if(parent.window != null)
{
   parent.window.opener = null ;
   parent.window.close(); 
}
  window.close(); 
     }  
     else
    {
return false ;
     }
}窗口源码里
//退出系统
strHtml += "<TD vAlign='bottom' align='center' noWrap>";
strHtml += "|&nbsp;";
strHtml += "<A onmouseleave=unchange(this) onclick=closeSystem()  onmouseenter=change(this)>"+"退出系统"+"</A>";
strHtml += "</TD>";
strHtml += "</TR></TABLE>";