Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the element that is being bound to the event script. This htmlFor property corresponds to the HTML FOR= attribute.
Syntax
HRESULT get_htmlFor( BSTR *p );
Parameters
- p
- Address of a variable that receives the element name.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
For more information on inline script, see Attaching an Event Handler, in the article Understanding the Event Model.
See Also
put_htmlFor
Sets the element that is being bound to the event script. This htmlFor property corresponds to the HTML FOR= attribute.
Syntax
HRESULT put_htmlFor( BSTR v );
Parameters
- v
- String specifying the element name.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
For more information on inline script, see Attaching an Event Handler, in the article Understanding the Event Model.
See Also
get_htmlFor, IHTMLScriptElement
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.