nsIDOMMessageEvent
| IID: | 3CF6163E-0227-49D9-B52B-F061828FB9B8 |
| Inherits From: | nsIDOMEvent |
The nsIDOMMessageEvent interface is used for server-sent events and for cross-domain messaging.
For more information on this interface, please see http://www.whatwg.org/specs/web-apps/current-work/multipage/section-event0.html#event0
Properties
readonly DOMString data
Custom string data associated with this event.
readonly DOMString domain
The domain of the site from which this event originated.
readonly nsIDOMWindow source
The window which originated this event.
readonly DOMString uri
The URI of the site from which this event was created.
Methods
void initMessageEvent ( DOMString type , PRBool canBubble , PRBool cancelable , DOMString data , DOMString domain , DOMString URI , nsIDOMWindow source )
void initMessageEventNS ( DOMString namespaceURI , DOMString type , PRBool canBubble , PRBool cancelable , DOMString data , DOMString domain , DOMString URI , nsIDOMWindow source )
void initMessageEvent ( DOMString type , PRBool canBubble , PRBool cancelable , DOMString data , DOMString domain , DOMString URI , nsIDOMWindow source )
Initializes this event with the given data, in a manner analogous to the similarly-named method on the nsIDOMEvent interface, also setting the data, domain, uri, and source attributes of this appropriately.
- Arguments:
- type
- canBubble
- cancelable
- data
- domain
- URI
- source
void initMessageEventNS ( DOMString namespaceURI , DOMString type , PRBool canBubble , PRBool cancelable , DOMString data , DOMString domain , DOMString URI , nsIDOMWindow source )
Initializes this event with the given data, in a manner analogous to the similarly-named method on the Event interface, also setting the data, domain, uri, and source attributes of this appropriately.
- Arguments:
- namespaceURI
- type
- canBubble
- cancelable
- data
- domain
- URI
- source
Reference documentation is generated from Mozilla's source.
