Custom jQuery Events — To listen for events from other windows, bind the event listener on the window.

PHOTO EMBED

Fri Mar 04 2022 11:10:07 GMT+0000 (UTC)

Saved by @mboljar

$(window).on('broadcast', function(message) {
  alert(message);
});
content_copyCOPY

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