I've seen this clever marketing tactic on many websites - when I am about to leave their website and move my mouse up fast to the top of the screen (to close their tab in Chrome, etc), the site reacts real fast, showing me some large modal window with "subscribe" email capturing form, or with "special offer" .
The timing is really good, and I usually stop for a second to decide on that modal window. I do it almost unconsciously, and so I would bet that this tactic increases conversion rates to whatever they are selling or grows their email list faster.
1) Here is one example of the webpage where I've experienced this behavior:
2) here is another site:
As you see, this script is probably more advanced than just few lines of code. So could anyone suggest an existing jQuery plugin that implements the popup when user move mouse trying to leave the page? Thanks!
Here is an Open Source package called OuiBounce - it has all these features that you mention
and it is also available through Wordpress plugin wBounce:
The rest of this answer is less relevant but I am still leaving it here:
... I've found a WordPress plugin called SUMOME, they are using exactly the same trick
They describe it like this:
Catch Your Visitors Right before They Leave
List Builder’s Smart Mode technology detects the exact moment when a visitors is about to leave. Immediately, a beautiful lightbox pops up asking for the visitor’s email address.
They use their own plugin on their website, so if you would visit that link, read it for half minute, then try to leave, you would experience that popup box yourself.
If someone has some time to take a look into their <script> tags to figure it out, please post here!