Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of contents

Expand
titleClick here to expand the table of contents
Table of Contents
minLevel1
maxLevel7
exclude^Оглавление$

...

Description

This action allows you to execute custom JavaScript code on site pages. Also, using this action, you can perform arithmetic operations with project variables:

...

Via context menu Add Action -> Custom Code -> JavaScript

...

Or use smart search.

...

What is it used for?

  • Arithmetic operations on variables

  • Interaction with page elements using JavaScript

...

You can test this code using the JavaScript Tester.

Note

When working in this mode, you do not need to specify the return keyword if you want to return some value. The result of this action will be the value calculated in the last line of the action. In the example below, the value “6” will get into the project variable {-Variable.result-}, the result of the expression 2 + 2 * 2.

...

View file
nameadd_jquery.zp

...