Re: detect user click "stop" button in browser
| From: | Andrei | Date: | Thu, 22 Jun 2006 09:50:54 +0000 |
| Subject: | Re: detect user click "stop" button in browser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238503@lists.php.net to get a copy of this message | ||
Check int connection_aborted ( ) in the PHP manual
Andy
weetat wrote:
> Hi all,
>
> Can we detected if user have clicked the "X" button in browser or
> close browser ?
> I have tested in my php program ,when i click "X" in IE6 , the
> execution did not stop , it still running .
> Any ways to stop the program execution when user click the "X" button
> or close browser ?
>
> Thanks
> - weetat
>