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.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a VARIANT structure that contains the onfocus script.
See also put_onfocus
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.
- Returns S_OK if successful, or an error value otherwise.
- v
- VARIANT structure that contains the onfocus script to be set.
See also get_onfocus
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.