[Javascript] Grab close window call

David Dorward david at dorward.me.uk
Tue Apr 1 02:05:49 CDT 2008


On 31 Mar 2008, at 23:26, Alan Easton wrote:
>
> I have a pop up window on my site, that launches a chat window.  
> Now, I would like to set a flag in my database, when someone ends  
> the chat. Easy done, if someone clicks the "End Session" link in  
> the window, but what if someone simply closes the window by the  
> normal means of clicking "close" icon in the top right of the window.

What if their browser crashes? Or their network connection goes down?

Set the flag if you can't communicate with the browser for  
$some_time_period.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the Javascript mailing list