Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

source property

Retrieves the source window object of the HTMLWindowEvents3::onmessage event.

Internet Explorer 8

Syntax

HRESULT value = object.get_source(** p);

Property values

Type: Object

the window that sent the message.

Remarks

When pages send cross-document messages with IHTMLWindow6::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 IHTMLWindow6::postMessage; any other interaction will return E_ACCESSDENIED.

See also

Reference
IHTMLEventObj5::data
IHTMLEventObj5::url
IHTMLWindow6::postMessage

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.