check if user has closed the window...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fishown
Forum Commoner
Posts: 33
Joined: Sat May 12, 2007 5:35 pm

check if user has closed the window...

Post by fishown »

Hello every one,

I have a page that send file through cURL,
This page start through an java script page with ajax, and retrun data to the javascript page to present progress....

Until that proint everything works just fine,
My problem is that when the user close the window the process proceed, which I dont want.
So my question is...

The is any way to check if user left an specific page? ...

Thank you, =]
adi.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: check if user has closed the window...

Post by s.dot »

You can attempt to check for it with onclose() or onbeforeclose() javascript events
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply