IHTMLWindow2::get_onloadIHTMLWindow2::get_onload*
*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.

p
Address of a VARIANT structure that contains the script.

See also put_onload

Up Top of Page


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.

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

See also get_onload


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