Gets the Element with the specified ID.

[VBScript]
Public Function GetElementById( _
   ByVal elementId As String _
) As Element
[JScript]
public function GetElementById(
elementId : String
) : Element;

Parameters

elementId
The ID to match.

Return Value

The Element with the matching ID or null if no matching element was found.

See Also

Document Object | Document Members | DOM Namespace