# WebPage Elements Event Handler Scripts

WebPage Elements Events handler script points are used to create custom JavaScript code for HMI operator interactions with Web Page User Input Controls elements while a project is in deployed mode. These interactions could be events such as a Button On Clicked, a CheckBox On Checked, a Numeric Entry On Value Changed, or a TextBox On Text Change.

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);