IHTMLEventObj2::type Property

Gets or sets the event name from the event object.

Syntax

HRESULT IHTMLEventObj2::get_type(BSTR *p);
HRESULT IHTMLEventObj2::put_type(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives the event name.
  • v
    BSTR that specifies the event name.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Events are returned without the "on" prefix. For example, the onclick event is returned as "click".