Calling parent window functions from a popup using Javascript

I open a popup and want to call a function from the parent window in a popup. I would like this to work with IE, FF and Chrome. I can get it to work with IE using window.opener, but the same doesn't work in Chrome. Could you help me with this?

Abishek Relations

+3
source share
1 answer

https://developer.mozilla.org/en-US/docs/Web/API/Window.postMessage

Compatibility is not 100%, you can get more compatibility using sockets, but this is only if you are really comfortable with them, and this is not a very high-performance site.

. , .

0

Source: https://habr.com/ru/post/1774041/


All Articles