Send messages with opened window

So i opened a new window on a button click event:

$w(“#button”).target = “_blank”;
$w(“#button”).link = someUrl; //nside my wix domain - actually just to page which contains some elements and javascript

Do i have any possibilty to send and receive messages with that window?

Like with the html components postMessage and receiveMessage

Hello Support?

Perhaps wix-location.query is what you want.

Hi Yisrael.
I thought more about something like a messaging model. Where when i send an event from window A to window B something inside that Window B will be started or stopped and when i press a button in window B then an event should get fired in Window A to start or stop something.
I hope you understand what i mean.
Something like the messaging framework for the html widget.

Any news on this Yisrael?
Here is a stackoverflow post which explains way better what i mean: javascript - Communication between tabs or windows - Stack Overflow

We really need cross window communication in our project. :frowning:

Hello Yisrael? Could you please tell me something about this? If it isn’t possible we have to look for a different solution… If this works our company would even buy the premium package…

You can use wix-storage persistent storage based on “permanent”, or session-based persistence. This would allow multiple pages to access the same data.

Hi Israel - i’m sorry to say - but i think you didn’t understand my problem. Please read the description again. :confused: I want trigger events on an opened page which is still inside wix and my domain… I actually explained it very proper in the top comments…

The StackOverflow that you referred to uses local storage (much as I suggested), however there are no trigger events. Feel free to submit a Feature Request .

Well, indeed it does - but the local storage here on wix doesn’t have a method like this:
$(window).on(‘storage’, message_receive);

I need to be able to trigger events and build up a communication chain between the 2 windows.

I posted a feature request as you suggested. Thanks for your help! (=

Yes, as I mentioned, there are not event handlers for page events.

The dev teams carefully reviews feature requests and hopefully they’ll find your suggestion worthwhile implementing.