L
lawmotorsportsJan 10, 2017
Hello,
I want the cookie modal to open on mouseleave.
I have this which is close, but it's not working properly:
<script>
shown = false;
$(document).mouseleave(function () {
if (!shown) {
$('#myModal1').modal();
shown = true;
}
});
</script>Do you have another way of achieving this?
