O
Oney
How can i send document.body.unbeforeunload event?
I tried this but it doesn't work
by the way, I already send windowClose() function
string closeSessionEvent="<SCRIPT Language=Javascript>"+
"document.body.onbeforeunload=\"Javascript:windowClose();\""+
"</SCRIPT>";
if(!Page.IsStartupScriptRegistered("closeSession"))
Page.RegisterStartupScript("closeSession",closeSessionEvent);
I tried this but it doesn't work
by the way, I already send windowClose() function
string closeSessionEvent="<SCRIPT Language=Javascript>"+
"document.body.onbeforeunload=\"Javascript:windowClose();\""+
"</SCRIPT>";
if(!Page.IsStartupScriptRegistered("closeSession"))
Page.RegisterStartupScript("closeSession",closeSessionEvent);