Custom jQuery Events — To send a message, simply trigger the event on the window element.

PHOTO EMBED

Fri Mar 04 2022 11:09:55 GMT+0000 (Coordinated Universal Time)

Saved by @mboljar

$(window).trigger('broadcast', 'a message');
content_copyCOPY

https://docs.expressionengine.com/latest/development/control-panel-js/events.html