Click to return to the Reusing Browser Technology home page    
IHTMLElement::get_filters...     IHTMLElement::get_innerHT...     IHTMLElement Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLElement::get_id Method


Retrieves the value of the id property for the object.

Syntax

HRESULT get_id(
    BSTR *p
);

Parameters

p
Address of a string (BSTR) 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 code otherwise.

Remarks

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

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.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLElement::put_id Method


Sets the value of the id property for the object.

Syntax

HRESULT put_id(
    BSTR v
);

Parameters

v
String (BSTR) that contains the ID to set. 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 code otherwise.

Remarks

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

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.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.