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.