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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -