message

The message handler is executed when data is received from a child (i)frame or parent window.

General info

Specification
Web Messaging
Interface
Event
Bubbles
No
Cancelable
No
Target
frame, iframe, window
Default Action
None

Properties

Property Type Description
target (readonlyInline) EventTarget The event target (the topmost target in the DOM tree).
type (readonlyInline) DOMString The type of event.
bubbles (readonlyInline) Boolean Whether the event normally bubbles or not.
cancelable (readonlyInline) Boolean Whether the event is cancellable or not.
data (readonlyInline) varies The data associated with the message.

See also

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,