Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Returns a reference to the first object with the specified ID value.
![]() |
Syntax
var ppRetElement = document.getElementById(bstrId);
Parameters
bstrId [in]
Type: BSTRA BSTR that specifies the ID, which is case sensitive.
ppRetElement [out, retval]
Type: IHTMLElement2The address of a pointer to a variable of type IHTMLElement2 that receives the first object with the ID specified in bstrId.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This version of IHTMLDocument6::getElementById requires IE8 Standards mode compatibility. For more information, see Defining Document Compatibility
.png)