IHTMLElement::get_idIHTMLElement::get_id*
*Contents  *Index  *Topic Contents
*Previous Topic: IHTMLElement::put_id
*Next Topic: IHTMLElement::get_tagName

IHTMLElement::get_id


HRESULT get_id(
    BSTR *p
);

Retrieves the value of the id property for the object. The property is an SGML identifier used as the target for hypertext links or for naming particular objects in associated style sheets.

p
Address of a string variable that receives the value of the id property. For scripting, this can be any alphanumeric string that begins with a letter, and can include the underbar (_) character.

The value of the id property should be unique throughout the scope of the current document. If there is more than one object with the same identifier, a collection of those named items is created that can only be referenced by ordinal position.

See also put_id

Up Top of Page


IHTMLElement::put_id


HRESULT put_id(
    BSTR v
);

Sets the value of the id property for the object. The property is an SGML identifier used as the target for hypertext links or for naming particular objects in associated style sheets.

v
String containing the ID. For scripting, this can be any alphanumeric string that begins with a letter, and can include the underbar (_) character.

The value of the id property should be unique throughout the scope of the current document. If there is more than one object with the same identifier, a collection of those named items is created that can only be referenced by ordinal position.

See also get_id


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