# Call JS Function

#### [![Response_JSFunction_Call.png](https://simlab-soft.com/help/uploads/images/gallery/2026-06/scaled-1680-/Wsbresponse-jsfunction-call.png)](https://simlab-soft.com/help/uploads/images/gallery/2026-06/Wsbresponse-jsfunction-call.png) Call JS Function

The Call JS Function node enables the execution of custom JavaScript functions in the gener  
ated Interactive WebGL HTML file after exporting a scene. The following steps explain how to configure and use this node:

1. Add these nodes to the interactive gltf diagram as an example.[![image.png](https://simlab-soft.com/help/uploads/images/gallery/2026-06/scaled-1680-/PYmimage.png)](https://simlab-soft.com/help/uploads/images/gallery/2026-06/PYmimage.png)
2. Export to Interactive WebGL. [![image.png](https://simlab-soft.com/help/uploads/images/gallery/2026-06/scaled-1680-/Uylimage.png)](https://simlab-soft.com/help/uploads/images/gallery/2026-06/Uylimage.png)
3. After exporting the scene to interactive WebGL, open the generated Interactive WebGL HTML file and implement the `test` function referenced by the **Call JS Function** node. This function will be executed when the node is triggered (As shown in the example below, the `test` JavaScript function will displays an alert popup containing the string **"test"**). [![image.png](https://simlab-soft.com/help/uploads/images/gallery/2026-06/scaled-1680-/ExXimage.png)](https://simlab-soft.com/help/uploads/images/gallery/2026-06/ExXimage.png)