The DOMExists function checks if an element with the specified ID exists in the DOM.
Syntax | |||||
DOMExists(ByVal ElementID As String) | |||||
Return value | |||||
Type |
Description | ||||
Boolean |
True if an element with the ID exists | ||||
Parameter | |||||
Use |
Name |
Type |
Passing |
Description | |
Required |
ElementID |
String |
ByVal |
The identifier of the element to be checked | |
Example:
If wc.DOMExists("LB") = False Then
wc.DOMCreate("label", "LB", "")
wc.DOMInnerHTML("LB") := "Configuration"
Else
wc.DOMRemove("LB")
End If