This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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