hi friends,
i have a problem with my website. i want to run a php file using ajax at the
time of closing the browser. i have written the code and it is working correctly.
i have used the javascript functon " window.onUnload " for tracking the close event. but the problem is this function will called every time i refreshes the window or i navigate to another link in the same site. i need only this function to run at the time of user closing the window or browser. friends, is there any solution for avoiding this or any other alternative?
codlib




Bookmarks