# Scripts and Event Handlers

Scripts and Event Handlers contain all the logic and code which execute when an Event is triggered.

Currently Stadium allows you to hook an event onto Buttons, Data Grids, Images, Links, Radio Button lists, Checkboxes, Date Pickers and Drop-down lists, as well as onto pages for Load events. You can build up a flow of steps to complete what you need to do, like write to a SQL Database, get a file, navigate to a different page, call a webservice, prompt the user to make a decision (message box) and do basic IF/Else programming.

[Here](https://docs.stadium.software/actions) is a list of all actions currently available in Stadium.

***

{% embed url="<https://www.youtube.com/embed/h7cB60ywOSU?autoplay=1&rel=0&vq=1080>" %}
Add a Script
{% endembed %}

***

### Script Properties

1. **Input Parameters**

   The parameters that will be passed to the script when calling it.
2. **Output Parameters**

   The parameters that will be returned by the script.

***

![](https://3514041584-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqxH8JA8xG3I22tiZG5H6%2Fuploads%2Fgit-blob-2731c6f28d45a307c432b8ac126b8f9f9d123b14%2Fscripts.png?alt=media)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.stadium.software/features/scripts-and-event-handlers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
