Suppose I have http://www.w3schools.com/js/tryit.asp?filename=tryjs_prompt page. Now I have event listener on click action, something like this:
document.addEventListener('click', function() {
MyMagicHere();
});
Now in case of clicking on button "Try it" MyMagicHere()
is interupted by JS popup. I want MyMagicHere()
to be performed even in case of clicking on this button. Is there any way/workaround how to handle this situation?