What is .postMessage(), when and why do we use it
.postMessage() method is a way to safely allow communication between cross-origin scripts.
Normally, two different pages, can only directly communicate with each other using JavaScript when they are under the same origin, even if one of them is emb...