IHTMLStyleElement::get_onerrorIHTMLStyleElement::get_onerror*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLStyleElement::get_media
*Next Topic: IHTMLStyleElement::get_onload

IHTMLStyleElement::get_onerror


HRESULT get_onerror(
    VARIANT *p 
);

Retrieves the inline script associated with the onerror event on the style element. This error event occurs when the loading of a document or image causes an error.

For more information on inline script, see Attaching an Event Handler in the Event Model documentation.

p
Address of a VARIANT structure that contains the error script. See onerror for more information.

See also put_onerror

Up Top of Page


IHTMLStyleElement::put_onerror


HRESULT put_onerror(
    VARIANT v 
);

Sets the inline script associated with the onerror event on the style element. This error event occurs when the loading of a document or image causes an error.

For more information on inline script, see Attaching an Event Handler in the Event Model documentation.

v
VARIANT structure that contains the script to be set. See onerror for more information.

See also get_onerror


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