3 ms·
Good old times when the "window.unload" and "mouseout" events were used to annoy people. At least it only does it once, unless you clear the browser cache.
by guessmyname 10y ago
Good old times when the "window.unload" and "mouseout" events were used to annoy people.
At least it only does it once, unless you clear the browser cache.
// view-source:http://www.razerzone.com/project-valerie:1667
setTimeout(exit_signup, $('#signup_new_exit').data('popout-exit-time') || 15000);
function exit_signup(){
if (typeof(Storage) !== "undefined") {
if(!localStorage.getItem("exitintent_signup")){
addEvent(document, "mouseout", function(e) {
e = e ? e : window.event;
var from = e.relatedTarget || e.toElement;
if (!from || from.nodeName == "HTML") {
if( e.clientY < 0 && !localStorage.getItem("exitintent_signup")){
signup_new_exit_popout();
localStorage.setItem("exitintent_signup", "true");
}
}
});
}
}
}