# Scripting

The In-Sight 3D adapter provides extensive scripting capabilities that allow you to create and manage user-defined JavaScript scripts for your vision application, and execute them while the device is Online. The IDE offers the following main areas that support incorporating scripts, described in the below table.

Script Type | Description
WebPages HMI Scripting | WebPage Elements scripts are used to program the script points for handling WebPage Element events, such as the On Clicked event of a Button. These scripts are executed in the Web browser running the HMI, and are written in JavaScript.

Note:

- The In-Sight 3D Help does not describe how to use JavaScript, and assumes that the user has a basic understanding of JavaScript programming.

- For more in-depth information about the JavaScript programming language, please consult the following (Internet access is required):

  - Mozilla JavaScript Guide
  - Mozilla JavaScript Language Reference
  - "JavaScript: The Definitive Guide" by David Flanagan
- For more information about script execution, and the differences in where they execute, see the Executing Scripts topic.