getElementById

This function returns the element that has the specified ID. If more than one element is found, only the first object is returned.

Syntax

function xweb.document.getElementById(
id : String
) : htmlElement

Parameters

id   A string that contains the ID of the HTML element.

Returns

This function returns the htmlElement object that contains the specified id. If no matching element is found, undef is returned.

See Also

Concepts

htmlElement
document
document Members
xweb

  Copyright © 2011 by Microsoft Corporation. All rights reserved.