Click to return to the Reusing Browser Technology home page    
IHTMLDocument3::get_uniqu...     IHTMLDocument3::getElemen...     IHTMLDocument3 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLDocument3::getElementById Method


Retrieves the first occurrence of an element with the specified ID.

Syntax

HRESULT getElementById(
BSTR v,
IHTMLElement **pel
);

Parameters

v
String (BSTR) that specifies the ID to look for.
pel
Address of a pointer to an IHTMLElement interface that returns the element with the specified ID.

Return Value

Returns S_OK if successful, or an error code otherwise.



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.