# Call JavaScript Function

## Overview

![The Call JavaScript Function Node.](/files/8ccVKLKykZg2uimohL5u)

The **Call JavaScript Function** **Node** executes a JavaScript function that is defined in a **Web Sprite** **Object**, which has to be given to the **Node** as its **Object** **Attribute**.

[**Scope**](/incari-studio/toolbox/overview.md#scopes): **Scene**.

## Attributes

![The Call JavaScript Function Node Attributes.](/files/mb4Jm7xZjnbd9Mi8SvQr)

| Attribute          | Type          | Description                                                                                    |
| ------------------ | ------------- | ---------------------------------------------------------------------------------------------- |
| `JS Function Name` | **String**    | Name of the function to be executed, if none is given in the `Function name` **Input Socket**. |
| `Parameters [n]`   | **Drop-down** | Label, **Data Type**, and default value of the parameters given to the function.               |

## Inputs

| Input             | Type                                                               | Description                                                                            |
| ----------------- | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**                                                          | A standard **Input Pulse**, to trigger the execution of the **Node**.                  |
| `Object ID`       | **ObjectID**                                                       | **Web Sprite** **Object** that contains the definition of the function to be executed. |
| `Function name`   | **String**                                                         | Name of the function to be executed.                                                   |
| `Parameter [n]`   | *Defined in the **Data Type** of the `Parameters`* ***Attribute*** | Value of the corresponding parameter.                                                  |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |
| `OnLoaded`         | **Pulse** | Flows to additional actions when the **Web Sprite** **Object** has finished loading.                                                   |

## See Also

* [**On JavaScript Callback**](/incari-studio/toolbox/events/web/on-javascript-callback.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.incari.com/incari-studio/toolbox/web/call-javascript-function.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
