# Call JavaScript Function

## Overview

![The Call JavaScript Function Node.](https://3009747178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MIspkFTPkuGkv4UgQGs-1330240639%2Fuploads%2Fgit-blob-41ca579712c82b4187d640abce4d916eb509ff45%2Fnode-call-javascript-function.png?alt=media)

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**.

## Attributes

### Object

| Attribute | Type         | Description                                                                            |
| --------- | ------------ | -------------------------------------------------------------------------------------- |
| `Object`  | **ObjectID** | **Web Sprite** **Object** that contains the definition of the function to be executed. |

### Function

| Attribute          | Type       | Description                                                                                    |
| ------------------ | ---------- | ---------------------------------------------------------------------------------------------- |
| `JS Function Name` | **String** | Name of the function to be executed, if none is given in the `Function name` **Input Socket**. |

### Inputs

| Attribute        | Type          | Description                                                                      |
| ---------------- | ------------- | -------------------------------------------------------------------------------- |
| `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**. |
| `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**](https://docs.incari.com/incari-studio/2021.1/toolbox/events/web/on-javascript-callback)
