mercredi 30 septembre 2015

How to capture all the events performed on iframe?

NOTE : The url of iframe is external link which is on different domain .

I could get a solution in which i was able to detect only a click event .

var monitor = setInterval(function(){
var elem = document.activeElement;
if(elem && elem.tagName == 'IFRAME'){
    message.innerHTML = 'Clicked';
    clearInterval(monitor);
}
}, 100);

Also , at this place it has been stated that there is no way we can capture the events of an external iFrame . I want to capture all the events . Is it possible ?




Aucun commentaire:

Enregistrer un commentaire