Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

DhDocument.findElement

Searches for an element in the document.

Syntax

public DhElement findElement( String id )

Parameters

id

The HTML ID attribute of the element to search for. For example, to find an element marked as 

ID="Caption1",**the id parameter would be set to "Caption1".

Return Value

Returns the DhElement representing the element in the document. This element can then be cast to the actual element type (for example, DhText).

Remarks

This method can be used to find any element in the document by the HTML ID attribute.