Thanks for your time however the unload event is not a good option. We dont want this firing if a user refreshes the page......This is just one of the obvious reasons.
Solution (can anybody see any floors?? it seems to work very well)
function closeSession()
{
//capturing ALT + F4
if (event.altKey==true && event.keyCode==0 )
{
//alert("closed1")
window.close();
if (window.opener && !window.opener.closed) {
window.opener.location.reload();
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.