nsIWorkerMessageEvent

This interface represents an event in a web worker thread's event queue.
1.0
28
Introduced
Gecko 1.9.1
Inherits from: nsIDOMEvent Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

Method overview

void initMessageEvent(in DOMString aTypeArg, in boolean aCanBubbleArg, in boolean aCancelableArg, in DOMString aDataArg, in DOMString aOriginArg, in nsISupports aSourceArg);

Attributes

Attribute Type Description
data DOMString The event's data. Read only.
origin DOMString The event's origin. Read only.
source nsISupports The event's source. Read only.

Methods

initMessageEvent()

Initializes the message event.

void initMessageEvent(
  in DOMString aTypeArg,
  in boolean aCanBubbleArg,
  in boolean aCancelableArg,
  in DOMString aDataArg,
  in DOMString aOriginArg,
  in nsISupports aSourceArg
);
Parameters
aTypeArg
The event type.
aCanBubbleArg
Whether or not the event can bubble.
aCancelableArg
Whether or not the event can be canceled.
aDataArg
The data to place into the data attribute.
aOriginArg
The origin to place into the origin attribute.
aSourceArg
The source to place into the source attribute.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Jürgen Jeka
 Last updated by: Sheppy,