Detect Click into Iframe using JavaScript
This is certainly possible. This works in Chrome, Firefox, and IE 11 (and probably others). const message = document.getElementById(“message”); // main document must be focused in order for window blur to fire when the iframe is interacted with. // There’s still an issue that if user interacts outside of the page and then click iframe … Read more