IHTMLWindow2::get_onfocusIHTMLWindow2::get_onfocus*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLWindow2::get_onerror
*Next Topic: IHTMLWindow2::get_onhelp

IHTMLWindow2::get_onfocus


HRESULT get_onfocus(
    VARIANT *p 
);

Retrieves the inline script associated with the onfocus event on the window element.

For more information on inline scripts, see Attaching an Event Handler in the Event Model documentation.

p
Address of a VARIANT structure that contains the onfocus script.

See also put_onfocus

Up Top of Page


IHTMLWindow2::put_onfocus


HRESULT put_onfocus(
    VARIANT v 
);

Sets the inline script associated with the onfocus event on the window element. This script is executed when the window receives focus.

For more information on inline scripts, see Attaching an Event Handler in the Event Model documentation.

v
VARIANT structure that contains the onfocus script to be set.

See also get_onfocus


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.