IHTMLWindow6::onmessage Property

Gets or sets a pointer to the event handler function associated with the onmessage event.

Syntax


HRESULT IHTMLWindow6::get_onmessage(VARIANT *p);HRESULT IHTMLWindow6::put_onmessage(VARIANT v);

Parameters

p
Pointer to a variable of type VARIANT that receives the IDispatch interface of an object with a default method that is invoked when the event occurs.
v
VARIANT that specifies the IDispatch interface of an object with a default method that is invoked when the event occurs.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

 New for Windows Internet Explorer 9 Internet Explorer 9. This event has been extended to IHTMLBodyElement4.

See Also

HTMLWindowEvents3::onmessage

Community Additions

Show: