detecting browser close or change of url
| From: | Jamie Saunders | Date: | Wed, 02 Jul 2003 14:43:22 +0000 |
| Subject: | detecting browser close or change of url | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-29027@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to figure out a way of detecting when a user closes the browser,
or if they leave the site. If they do this I'd like to change a value in
the database, i.e:
if (browser is closed by user or they leave site)
{
// run php code to update database
}
Any help much appreciated.
--
Jamie Saunders
Media Architect
phpdev@mediacdcards.net