Email Capture Script
by Scott Markham
let exitIntentShown = false;
document.addEventListener('mouseleave', function(e) {
if (e.clientY <= 0 && !exitIntentShown) {
exitIntentShown = true;
showEmailPopup();
}
});
function showEmailPopup() {
const popup = document.createElement('div');
popup.innerHTML =
🚀 Wait! Don't Miss Out
Get our AI Business Starter Pack (normally £9.99) FREE when you join our newsletter.
document.body.appendChild(popup);
}