Contents Index Topic Contents | ||
Previous Topic: IHTMLStyleElement::get_onerror Next Topic: IHTMLStyleElement::get_onreadystatechange |
IHTMLStyleElement::get_onload
HRESULT get_onload( VARIANT *p );Retrieves the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
For more information on inline script, 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 script.
See also put_onload
IHTMLStyleElement::put_onload
HRESULT put_onload( VARIANT v );Sets the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
For more information on inline script, 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 script to be set.
See also get_onload
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.