ExecuteJavaScript Method (DomElement)

Class

DomElement.

Action

Evaluates the given JavaScript code within the parent document's context.

Syntax

element.ExecuteJavaScript(code, [elementName])
Variable Description
code The JavaScript code to evaluate. String.
elementName Optional: An optional name for the current element that can be used in the script, such as 'alert(currentElement.tagName);' opens a message box and displays the tag name of the current element. String.