StaticinitInitializes the EventHelper with a target window.
This method sets the target window where the messages will be posted to. Any listeners registered during a previous session are removed first. The calling page's window is captured as the host window for message listeners.
The target window to which messages will be sent.
Returns true if the target is successfully set, otherwise false.
StaticonSets up an event listener for a specific event type.
This method listens for messages of the specified event type and executes the provided function when such an event occurs.
The expected type of data in the event message.
Returns the EventHelper class for method chaining.
StaticsendSends a message to the target window.
This method encodes a message of the specified event type and data, then posts it to the target window.
The type of data being sent.
Returns the EventHelper class for method chaining.
Helper class for managing custom events across different windows or iframes.