Detect Click into Iframe using JavaScript
Posted
by Russ Bradberry
on Stack Overflow
See other posts from Stack Overflow
or by Russ Bradberry
Published on 2010-03-04T17:25:21Z
Indexed on
2010/05/11
18:34 UTC
Read the original article
Hit count: 818
I understand that it is not possible to tell what the user is doing inside an iframe
if it is cross domain. What I would like to do is track if the user clicked at all in the iframe
. I imagine a scenario where there is an invisible div
on top of the iframe
and the the div
will just then pass the click event to the iframe
.
Is something like this possible? If it is, then how would I go about it? The iframes
are ads, so I have no control over the tags that are used.
© Stack Overflow or respective owner