javascript - How to capture all the events performed on iframe? -
note : url of iframe external link on different domain cannot modify.
i solution in able detect click event .
var monitor = setinterval(function(){ var elem = document.activeelement; if(elem && elem.tagname == 'iframe'){ message.innerhtml = 'clicked'; clearinterval(monitor); } }, 100);
also , @ this place has been stated there no way can capture events of external iframe
. want capture events . possible ?
if own both sites/domains use postmessage when clicking in child document, won't work on ie8
Comments
Post a Comment