IHTMLObjectElement::altHtml Property

Gets or sets the optional alternative HTML script to execute if the object fails to load.

Syntax


HRESULT IHTMLObjectElement::get_altHtml(BSTR *sHTMLCode);HRESULT IHTMLObjectElement::put_altHtml(BSTR sHTMLCode);

Parameters

sHTMLCode
Pointer to a variable of type BSTR that receives the alternative HTML code to execute.
sHTMLCode
BSTR that specifies the alternative HTML code to execute.

Return Value

Returns S_OK if successful, or an error value otherwise.

Community Additions

Show: