resolveJSName
Last updated
Last updated
Returns the javascript built in object or user defined object.
name
The name of the javascript built in object to resolve. (example: document, window, document.body)
String/Text
-
-
Yes
Returns the javascript built in object or user defined object that matches with the name param
Object
In this example, we will get window
object using resolveJSName
function and put it inside console
value to see the object in preview
Drag a button
component into the canvas and open the Action
tab. Select the press
event of the button and drag the console
function to the event flow.
Call the function resolveJSName
inside the console
's value
subflow.
Add the value window
on name
param in the resolveJSName
function.
Now click the button in preview, it will show the window
object on the console