Contents Index Topic Contents | ||
Previous Topic: IHTMLWindow2::get_onhelp Next Topic: IHTMLWindow2::get_onresize |
IHTMLWindow2::get_onload
HRESULT get_onload( VARIANT *p );Retrieves the inline script that is executed immediately after the browser loads the given object.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a VARIANT structure that contains the script.
See also put_onload
IHTMLWindow2::put_onload
HRESULT put_onload( VARIANT v );Sets the inline script associated with the onload event on the window element. This script is executed immediately after the browser loads the given object.
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 onload script to be set.
See also get_onload
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.