Using window.postMessage to post messages between windows & iframes
HTML5PostMessage Using postMessage, a new feature in HTML5 to securely communicate between parent and child window, to post messages between windows & iframes. The Window.postMessage() method safely enables cross-origin communication. Normally, scripts on different pages are allowed to access each other if and only if the pages that executed them are at locations with the…