Donleeve is a library for exit intent actions!

For better user experience, Donleeve uses localStorage to prevent exit intents from popping up too often. You can specify parts of the URL to block with regex if you have different modals on your pages and you want a different block for each. For example, take a look at these links:

Waiting for X active seconds to pass to prevent false positives

Active means the user must be viewing the page. If he opened your site in a new tab for later reading, the counter will start when he focuses the tab. This functionality is achieved via the active-timeout.js dependency.

What's happening

Click here to purge all exit intent blocks.

This fills up with events where the exit intent condition was met