Assume I have several iframes on the page and one of them sent a post message. Is there a simple and crossbrowser way to detect which one did it and be able to reply?
I see the source
property of the message event
but I am unable respond by using event.source.contentWindow.postMessage
on it:
Error: Permission denied to access property 'contentWindow'