# Events [Script](../Scripting.md) notes can be triggered by events. Note that these are backend events and thus relation need to point to the "JS backend" code note. ## Global events Global events are attached to the script note via label. Simply create e.g. "run" label with some of these values and script note will be executed once the event occurs.
| Label | Description | 
|---|---|
| run | Defines on which events script should run. Possible values are: 
 | 
| runOnInstance | Specifies that the script should only run on a particular Trilium instance. | 
| runAtHour | On which hour should this run. Should be used together with #run=hourly. Can be defined multiple times for more runs during the day. |