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.
- Returns S_OK if successful, or an error value otherwise.
- 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
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.
- Returns S_OK if successful, or an error value otherwise.
- 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
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.