IHTMLWindow7::onfocusin Property

New for Windows Internet Explorer 9

Sets or retrieves a pointer to the event handler function associated with the onfocusin event.

Syntax

HRESULT IHTMLWindow7::get_onfocusin(VARIANT *p);
HRESULT IHTMLWindow7::put_onfocusin(VARIANT v);

Parameters

  • p
    Pointer to a variable of type VARIANT of type VT_DISPATCH that receives the IDispatch interface of an object with a default method that is invoked when the event occurs.
  • v
    VARIANT of type VT_DISPATCH 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

IHTMLWindow7::onfocusin was introduced in Microsoft Internet Explorer 6

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

See Also

IHTMLDocument3::attachEvent, IHTMLElement2::attachEvent