Re: Detecting Browser Closing...
| From: | Chris Boget | Date: | Wed, 14 Aug 2002 18:00:24 +0000 |
| Subject: | Re: Detecting Browser Closing... | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112564@lists.php.net to get a copy of this message | ||
> Thanks for the prompt response... Would this mean I would
> embedd the Java Script in my php Script and alter the php
> variable accordingly...
No, because JS is client side and PHP is server side. What
you would need to do is have JS detect when the browser
closed and make one last server request and whatever page
you go to with that would do whatever you needed done. That
means you'd have to open up another browser instance on the
user's machine and that might really annoy said user.
Chris