IHTMLEventObj5::data Property
.gif)
Note: This documentation is preliminary and is subject to change.
Sets or retrieves the body of the onmessage request.
Syntax
HRESULT IHTMLEventObj5::get_data(BSTR *p); HRESULT IHTMLEventObj5::put_data(BSTR v);
Parameters
- p
Pointer to a variable of type BSTR that receives the body of the message, if specified by the sender; otherwise an uninitialized BSTR.- v
BSTR that specifies the body of the message, if specified by the sender; otherwise an uninitialized BSTR.
Return Value
Remarks
The data property contains the value passed to IHTMLWindow6::postMessage. Before trusting the data, check the uri property of the message request to determine its source.
See Also