Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
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.
Syntax
HRESULT get_id( BSTR *p );
Parameters
- 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 underscore (_) character.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
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
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.
Syntax
HRESULT put_id( BSTR v );
Parameters
- v
- String containing the ID. For scripting, this can be any alphanumeric string that begins with a letter, and can include the underscore (_) character.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
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, IHTMLElement
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.