source property (event)
Returns a reference to the window object that contains the document that caused the onmessage event.
Note: The source property is supported in Internet Explorer from version 8, in Firefox from version 3 and in Opera from version 9.5.An onmessage event occurs when the postMessage method sends a message to the current window. For details, see the pages for the postMessage method and the onmessage event.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that retrieves a reference to the caller window object.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the source property:
Did you find this example helpful?
User Contributed Comments