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
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