Detect Click into Iframe using JavaScript -
i understand not possible tell user doing inside iframe if cross domain. track if user clicked @ in iframe . imagine scenario there invisible div on top of iframe , the div pass click event iframe . is possible? if is, how go it? iframes ads, have no control on tags used. is possible? no. can detect mouse going iframe, , potentially (though not reliably) when comes out (ie. trying work out difference between pointer passing on ad on way somewhere else versus lingering on ad). i imagine scenario there invisible div on top of iframe , the div pass click event iframe. nope, there no way fake click event. by catching mousedown you'd prevent original click getting iframe. if determine when mouse button pressed try invisible div out of way click go through... there no event fires before mousedown. you try guess, example looking see if pointer has come rest, guessing click might come. it's totally unreliable, , if fail you've lost click-t