Click to return to the Reusing Browser Technology home page    
IHTMLScriptElement::get_e...     IHTMLScriptElement::get_o...     IHTMLScriptElement Interf...    
Web Workshop  |  Reusing Browser Technology

IHTMLScriptElement::get_htmlFor Method


Retrieves the element that is being bound to the event script.

Syntax

HRESULT get_htmlFor(
    BSTR *p 
);

Parameters

p
Address of a string (BSTR) variable that receives the element name.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

For more information about inline script, see the Attaching an Event Handler section in the Understanding the Event Model article.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLScriptElement::put_htmlFor Method


Sets the element that is being bound to the event script.

Syntax

HRESULT put_htmlFor(
    BSTR v 
);

Parameters

v
String (BSTR) that specifies the element name to set.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

For more information about inline script, see the Attaching an Event Handler section in the Understanding the Event Model article.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.