# WebPage Elements Event Handler Scripts

WebPage Elements Events handler script points are used to create custom JavaScript code for HMI operator interactions with User Inputs and Vision Controls and Displays elements while a job is Online. These interactions could be events such as a Button On Clicked, a CheckBox On Checked, a Numeric Entry On Value Changed, a TextBox On Text Change, or an In-Sight Display On Mouse Enter event.

1. To add script to an element's Event, press the button next to the specific event handler in the Properties pane. This will open the Script Editor.

2. Compose the relevant code. For example:

       var cameraName = "cam0";

       $SetCameraSetupPaths(cameraName);