IHTMLImgElement::get_onerrorIHTMLImgElement::get_onerror*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLImgElement::put_onerror
*Next Topic: IHTMLImgElement::put_onabort

IHTMLImgElement::get_onerror


HRESULT get_onerror(
    VARIANT *p
);

Retrieves the inline script associated with the onerror event for an IMG element. The onerror event occurs when the loading of a document or image causes an error.

p
Address of a VARIANT structure that receives the script.

See also put_onerror

Up Top of Page


IHTMLImgElement::put_onerror


HRESULT put_onerror(
    VARIANT v
);

Sets the inline script associated with the onerror event for an IMG element. The onerror event occurs when the loading of a document or image causes an error.

v
VARIANT structure that contains the new script.

See also get_onerror


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