source
Summary
Gets the window object that sent the message.
Property of dom/MessageEventdom/MessageEvent
Syntax
Note: This property is read-only.
var sourceWindow = event.source;
Return Value
Returns an object of type ObjectObject
The window that sent the message.
Notes
In cross-document messaging, this property provides access to the window object that sent the message.
Related specifications
- W3C HTML5
- Working Draft
- WHATWG HTML
- Living Standard
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]