Provides event properties that are specific to the onmessage event.
![]() |
DOM Information
Inheritance Hierarchy
Members
The MessageEvent object has these types of members:
Methods
The MessageEvent object has these methods.
| Method | Description |
|---|---|
| initEvent |
Initializes a new generic event that the createEvent method created. |
| initMessageEvent |
Initializes a new cross-document message (XDM) event that the createEvent method created. |
| preventDefault |
Cancels the default action of an event. |
| stopImmediatePropagation |
Prevents any further propagation of an event. |
| stopPropagation |
Prevents propagation of an event beyond the current target. |
Properties
The MessageEvent object has these properties.
| Property | Description |
|---|---|
|
Gets a value that indicates whether an event propagates up from the event target. | |
|
Gets a value that indicates whether you can cancel an event's default action. | |
|
Gets or sets a value that indicates whether an event should be stopped from propagating up from the current target. | |
|
Gets the event target that is currently being processed. | |
|
Gets the data of the event. | |
|
Gets a value that indicates whether the default action should be canceled. | |
|
Gets the event phase that is being evaluated. | |
|
Gets a value that indicates whether a trusted event source created an event. | |
|
Gets the URI of the document of origin. | |
|
Gets the window object that sent the message. | |
|
Gets the element that the event was originally dispatched to. Compare to target. | |
|
Gets the element that is the target of the event. | |
|
Gets the time, in milliseconds, when an event occurred. | |
|
Gets the name of an event. |
Standards information
See also
Build date: 11/29/2012
