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

Use something like the following:

<head><title>test</title>
<script>
function ajax() {
//ajax stuff here
}
</head>
<body onunload="javascript:ajax();">

Hope that helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.