I want to run aphp code when particular window is closed ( Want to enter the time of closing of window in database) How can I do this Plz help me if somebody know abt it Thanx in advance
I've never tried it (never had cause to), but you could have an onClose event handler in JavaScript that sends a request to the server. You won't be able to use PHP because it doesn't know what windows are.
You could try something like this:
<body onclose="window.location='http://www.mysite.com/update.php';">