Share via


data property

Sets or retrieves the body of the HTMLWindowEvents3::onmessage request.

 

Syntax

HRESULT value = object.put_data( v);HRESULT value = object.get_data(* p);

Property values

Type: BSTR

the body of the message, if specified by the sender; otherwise an uninitialized BSTR.

Remarks

The IHTMLEventObj5::data property contains the value passed to IHTMLWindow6::postMessage. Before trusting the data, check the IHTMLEventObj5::url property of the message request to determine its source.

See also

IHTMLEventObj5::url