# StartupScript Property
> Version: _Available or changed with runtime version 1.0._
Specifies the script which is invoked when web page with the control add-in is loaded.
## Applies to
 Control Add In
## Property Values
A path to a single script file. The default is blank, with no script being specified.
## Remarks
This property is typically JavaScript representing the main body of the control add-in. The script is invoked when the page that hosts the control add-in has loaded and after other scripts referenced by the devenv-scripts-property property have loaded.
Although this property is optional, the control add-in must either specify the StartupScript property or specify one or more scripts.
The script is embedded within the extension and must be added to the extension project folder in Visual Studio Code and referenced using a relative path.
## Example
```al
StartupScript = 'js/chart.js';
```
## Related information
devenv-properties
Control Add-In Object<../devenv-control-addin-object>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-startupscript-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-startupscript-property/
