The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Detecting When a User Leaves

Here's my problem. I would like a survey-popup when a user leaves a web site. I understand that the "OnExit" event triggers each time the current page is unloaded or when a browser closed.

However, I only wish for the pop-up to appear when the visitor leaves the site. I have heard previous suggestions of using a frame, are there any other ways to do this?

And, just incase you are wondering...no, we are not going to launch 100s of pop-ups to prevent the visitors from leaving. That's plain evil. We will present them with a questionaire on why they have left, and how to improve the web site.