I am using window.postmessage() to send data from lightning component to visualforce page as given in below link.


For some reason window.postmessage() in not working in Microsoft edge after spring'19 release. Is there any other way to communicate between independent lightning component and visualforce page without window.postmessage()?

Any kind of help is appreciated.

Thank You

  • @codeyinthecloud When I used post message, I added Vf page as Iframe and then using that I was sending message to VF page. Suppose if I use dispatchEvent in lightning component, how a visualforce page will listen to that event as vf and lightning components are in different container? Jan 15, 2019 at 15:59
  • Has any one achieved this using any other way? Jan 19, 2020 at 12:01

1 Answer 1


you can try lightning message service, this is a new feature. http://www.webuildsf.cloud/salesforce-crm/an-example-to-communicate-between-lightning-web-components-and-visualforce-pages/

  • yes, earlier when i posted this question this feature was not available. May 20, 2020 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.