Contents Index Topic Contents | ||
Previous Topic: IHTMLImgElement::put_onload Next Topic: IHTMLImgElement::put_onerror |
IHTMLImgElement::get_onload
HRESULT get_onload( VARIANT *p );Retrieves the inline script associated with the onload event for an IMG element. The onload event occurs 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 receives the script.
See also put_onload
IHTMLImgElement::put_onload
HRESULT put_onload( VARIANT v );Sets the inline script associated with the onload event for an IMG element. The onload event occurs immediately after the browser loads the given object.
- Returns S_OK if successful, or an error value otherwise.
- v
- VARIANT structure that contains the new script.
See also get_onload
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.