Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

id property

[This documentation is preliminary and is subject to change.]

Sets or retrieves the string identifying the object.


HRESULT value = object.put_id(BSTR v);HRESULT value = object.get_id(BSTR* p);

Property values

Type: BSTR

any alphanumeric string that begins with a letter. The underscore (_) can also be used.


The IHTMLElement::id is an SGML identifier used as the target for hypertext links or for naming particular objects in associated style sheets.

The IHTMLElement::id should be unique throughout the scope of the current document. If a document contains more than one object with the same identifier, the objects are exposed as a collection that can be referenced only in ordinal position.

In versions earlier than Microsoft Internet Explorer 5, this property is read-only.



Build date: 6/6/2012

Community Additions

© 2015 Microsoft