source property

Retrieves the source window object of the onmessage event.

Internet Explorer 8

 

Syntax

JavaScript
p = object.source

 

Property values

Type: Object

the window that sent the message.

Remarks

When pages send cross-document messages with postMessage, the target window receives a reference to the sender of the message. If the two pages are hosted in the same domain, the target window has full access to the Document Object Model (DOM) of the sender. If not, the target can only respond to the message sender with postMessage; any other interaction will return "Access Denied" error.

See also

event
Reference
data
url
postMessage

 

 

Show:
© 2014 Microsoft