Like I said in my first comment, I did a lot of experiments of cross tab/window communications in FF, Chrome, Opera, IE and Safari. I used postMessage() with SharedWorker, MessageChannel, iframes and popups. I also played with the “StorageEvent hack”. Survey marking meanings
Occurs when the postMessage method sends a message to the current window. Note: The onmessage event is supported in Firefox from version 3 and in Internet Explorer from version 8. I am trying to embed iFrame code for a form into a SharePoint site and it keeps saying the code is incomplete. Something appears to have broken at some point. as it was working last week. Use the window postMessage API to communicate between your page and the iframe. For example you could send a message to the iframe with the value being the URL to the document you want to load. The iframe would handle this message in a config file and call readerControl.loadDocument to load the document from the new URL.
The example below demonstrates an iframe using postMessage to interact with its parent document when that document is on another domain. Even though the Same Origin Policy prevents direct access to the objects and properties in the document, postMessage can be used to ask the document on the other domain to perform the tasks and provide the ...
When you send a message from a Lightning component to the iframe it wraps using contentWindow.postMessage(), there can only be one Visualforce page loaded in that contentWindow. In other words, that Visualforce page is the only place where you can set up a message event listener and get the messages sent by the Lightning component in that fashion. At Cooper Motors Lincoln, we pride ourselves on being a family-owned business, still thriving after over 74 years. We offer our employees competitive benefits, paid training opportunities, and an inviting team atmosphere.