Accuratly catch clicks on an iframe <p>I have an ad iframe being written onto my page dynamically. The advert inside may have another iframe itself and will "suck" click events through into it so cannot track them easily. I've used this great plugin by @Vince in the past:</p> <p><a href="https://github.com/finalclap/iframeTracker-jquery" rel="nofollow">https://github.com/finalclap/iframeTracker-jquery</a></p> <p>which seems to work fine until the window this is all running in IS ITSELF an iframe and focus is somewhere on the outermost page. I can see it getting the rollover/rollout events but it doesn't get the click unless focus is somewhere inside the first iframe's window.</p> <p>Has anyone found a solid way to do this? Thanks in advance if anyone can help.</p>