Hi Everyone,
Im using dnnmodal.show as an exit-intent feature, opens fine but im trying to catch the close event when clicking on the x top right in order to write a cookie to stop further displays.
any idea how i would reference that, ive tried below but no luck
$(document).on('mouseleave', leaveFromTop);
function leaveFromTop(e){
if ( e.clientY < 0 )
dnnModal.show('/exitpop.html?popUp=true',true,300,300,false);
};
// handle closing of modal
$('.ui-dialog-titlebar-close .dnnToggleMax .dnnModalCtrl').on('click',function(){
alert("add cookie write");
});
Many thanks
Stu