this is my code:
document.addEventListener('mousedown', function (e) {
bubbleDOM.style.visibility = 'hidden';
}, false);
My problem is that mousedown occurs on a link that i want to process, this link is
inside bubbleDOM. the hidden call is so quick that the link is not processed.
How do i delay bubbleDOM.style.visibility = 'hidden' ?
you can use setTimeout to delay your code
e.g:
else,
instead of delaying the code, you can also redirect the user using javascript