I own a Website. And I need a script that executes a MySQL query whenever the client tries to close the current tab/window/browser. The client has its own table on my MySQL database, so I need to delete that table when the client exits my site.
Any help on that?