getElementById method

[This documentation is preliminary and is subject to change.]

Returns a reference to the first object with the specified value of the ID or NAME attribute.

Document Object Model (DOM) Level 3 Core Specification, Section 1.4

Syntax

IHTMLElement retVal = object.getElementById(v);

Standards information

Parameters

  • v [in]
    Type: BSTR

    A BSTR that specifies the ID value. Case-insensitive.

Remarks

If more than one element is found, getElementById returns the first object in the collection.

Windows Internet Explorer 8 or later. An alternate implementation is available. For more information, see getElementById.

See also

About the W3C Document Object Model

 

 

Build date: 1/26/2012