detecting browser close or change of url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux