Exit Intent Detection Plugin With jQuery - Exitintent.js
File Size: | 5.72 KB |
---|---|
Views Total: | 12186 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

Exitintent.js is a very small jQuery exit intent plugin which detects if the mouse moves out of view and fires an event when the user is about to leave the current page. Useful to create exit intent popups for confirmation, email subscription, social sharing and many more.
See also:
- jQuery Plugin For Confirmation on Leaving the Current Page - confirmExit
- Smart jQuery Plugin For Page Leave Event - pageleave
- Cookie-enabled Exit Popup Window Plugin With jQuery - ysExitPopup
- Lightweight Exit Modal Plugin With jQuery And Bootstrap - exit-modal
- jQuery Plugin For Smart Exit Pop Behaviour - Exit Popup
- jQuery Plugin To Pop To Another URL On Page Exit - Exitpop
How to use it:
1. The jQuery Exitintent.js plugin must be loaded after jQuery JavaScript library as follow:
<script src="//code.jquery.com/jquery.min.js"></script> <script src="jquery.exitintent.js"></script>
2. Enable the 'Exit Intent' event.
$.exitIntent('enable');
3. Bind the 'Exit Intent' event to your document and do whatever you like if the cursor moves out of view.
$(document).bind('exitintent', function() { // ... });
Change log:
2018-01-02
- Fix event not being triggered on scrolled pages
This awesome jQuery plugin is developed by flaviovs. For more Advanced Usages, please check the demo page or visit the official website.