Questions tagged [postmessage]

The window.postMessage() method safely enables cross-origin communication between Window objects; e.g., between a page and a pop-up that it spawned, or between a page and an iframe embedded within it.

Cross-document messaging (aka postMessage) is an API introduced in the WHATWG HTML5 draft specification, allowing documents to communicate with one another across different origins, or source domains. Prior to HTML5, Web browsers disallowed cross-site scripting, to protect against security attacks.

See MDN Window.postMessage() API Reference

Related APIs

863 questions
0
votes
0 answers

worker postmessage is not firing after some time

Iam making a Worker Thread start , in this thread I make an Ajax call to get data and on worker receive message i bind data to grid. NOTE ; I have 10 grids and whenever I change context(grid changes) and I call worker thread to get data and bind to…
0
votes
1 answer

Does Postmessage work between individual web pages under the same domain? If so, how?

In my code, I have this: On the receiving page, I have