Navigation:  Reference > Actions >

Call Javascript Snippet

Previous pageReturn to chapter overviewNext page

This action allows you to input the Javascript snippet to be called. By using this action, you will be able to call any predefined Javascript function, thus integrate your ForeUI simulation with other application.

calljsaction

callJS

When inputting the Javascript code, please make sure NOT to use <script> tag to wrap the content.

You can insert properties in the Javascript, and they will be replaced by the actual values in the HTML5 simulation. The Javascript content only supports EVAL parsing mode.

Remarks: just like the Script element, this new action is prepared for advanced users. You should know what you are doing when using it, calling incorrect Javascript may bring strange behavior to your HTML5 simulation, and sometimes even halts the entire simulation.