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 clicke
iframe
This is small solution that works in all browsers even IE8:
var monitor = setInterval(function(){ var elem = document.activeElement; if(elem && elem.tagName == 'IFRAME'){ clearInterval(monitor); alert('clicked!'); } }, 100);
You can test it here: http://jsfiddle.net/oqjgzsm0/