Re: Getting event when user clicks X in browser, something different from {before}bodyunload

Giganews Newsgroups
Subject: Re: Getting event when user clicks X in browser, something different from {before}bodyunload
Posted by:  David Dorward (dorwa…@yahoo.com)
Date: Sun, 03 Sep 2006

hemant.sin…@gmail.com wrote:

> I am trying to get a way by which I'll know exactly when user goes out
> of my site by clicking on close button in browser, So that w/e user
> click close button in browser, I can send a signal to server.

You can't. Nor can you tell when the user "closes" their browser by turning
their computer off, having their Internet connection fail, etc, etc.

--
David Dorward      http://blog.dorward.me.uk/http://dorward.me.uk/>
                    Home is where the ~/.bashrc is

Replies

None

In response to

Getting event when user clicks X in browser, something different from {before}bodyunload posted by hemant.sin…@gmail.com on 3 Sep 2006