Skip to main content
DemoZalo 0862020654

Interaction

JavaScript Code

Execute custom JavaScript code in a webpage

Block type: javascript-code

The JavaScript Code block’s settings panel in the workflow editor.
The block’s settings, as they appear in the editor.

Inputs

NameTypeDefaultDescription
disableBlockbooleanfalseDisable this block
descriptionstring—Node description
coderequiredcodeconsole.log("Hello world!"); automaNextBlock()JavaScript code to execute
contextselectwebsiteExecution context

Example: website

websitebackground
timeoutnumber20000Script timeout (ms)
runBeforeLoadbooleanfalseRun before page load
everyNewTabbooleanfalseExecute on every new tab
preloadScriptsarray[]Scripts to preload

Outputs

  • resultany

    Code execution result