IHTMLLabelElement::get_htmlForIHTMLLabelElement::get_htmlFor*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLLabelElement::put_htmlFor
*Next Topic: IHTMLLabelElement::put_accessKey

IHTMLLabelElement::get_htmlFor


HRESULT get_htmlFor( 
    BSTR *p 
);

Retrieves which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.

p
Address of a variable that receives the control-like element.

The FOR= attribute references the ID of another element. The FOR= attribute is optional when the label is implicitly defined. This is done by wrapping the label around the control the label is specified for.

See also put_htmlFor

Up Top of Page


IHTMLLabelElement::put_htmlFor


HRESULT put_htmlFor(
    BSTR v 
);

Sets which control-like element to assign the given label element to. This property corresponds to the FOR= attribute in HTML.

v
String specifying the control-like element.

The FOR= attribute references the ID of another element. The FOR= attribute is optional when the label is implicitly defined. This is done by wrapping the label around the control the label is specified for.

See also get_htmlFor


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