onbeforeunload event behaves weirdly

R

RJN

Hi

I have an onbeforeunload event where in I call a server side script to
release some locks on the databse.

function releaseLock()
{
__doPostBack('btnUnlock','');
}
<body onbeforeunload="releaseLock();>

btnUnlock is a server side html button. I found that in a few occasions
I found that the lock was not released when the page was closed.(clicked
on the top right X). I put an alert inside and the message comes up. Any
idea why this inconsistent behaviour?

Regards

RJN
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top