Is it possible to detect which element was clicked inside iframe?
var iframe = document.getElementById("my_iframe");
iframe.document.addEventListener('click', function(event) {
console.log(this.id);
}, false);
<iframe id="my_iframe"
src="https://fr.wikipedia.org/wiki/Wiki"
frameborder="0" style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;position:absolute;top:0px;left:0px;right:0px;bottom:0px"
height="100%" width="100%">
</iframe>