1 Comment to 'How can I execute some php code after the user closes the current window/tab?'
Atif Majid
February 11, 2010
For this
1) Try to capture the event when user closes the Tab/Window
2) When the event is triggered, use Ajax to send request to server to execute the required PHP file.
You can google to find the respective Event when browser is closed.
1 Comment to 'How can I execute some php code after the user closes the current window/tab?'
February 11, 2010
For this
1) Try to capture the event when user closes the Tab/Window
2) When the event is triggered, use Ajax to send request to server to execute the required PHP file.
You can google to find the respective Event when browser is closed.
Leave a comment