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
Exit Intent Detection Plugin With jQuery - Exitintent.js

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:

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.


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:


  • 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.