© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Gijo Varghese
A WordPress speed enthusiast
You can use postMessage to pass messages between iframe and parent. Read more: developer.mozilla.org/en-US/docs/Web/API/Window/p…
postMessage
monis
JS
Thanks for the answer, but here I am not sure by using this playing with global object is it be advisable ? or any other way we can achieve same.
This is the only method if you want to communicate between iframe. It works!
thanks, just for opinion only thing to avoid is less polluting of global window object with values.