<div class="exit-overlay" id="exitPopup">
<div class="exit-modal">
<button class="close-popup" id="closeExit">×</button>
<h2>Wait! Don't leave yet.</h2>
<p>Get 20% off your first order if you sign up now.</p>
<button class="claim-btn">Claim Discount</button>
</div>
</div>
<p style="text-align:center; padding: 50px;">Move your mouse out of the window (top) to trigger the popup.</p>
Back to Snippets
Exit Intent Popup JS
Show a popup message exactly when a visitor tries to leave your page. We detect the mouse movement towards the top of the browser, which helps you capture leads or offer discounts before they go.
312