> For the complete documentation index, see [llms.txt](https://velara-3.gitbook.io/web-export/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://velara-3.gitbook.io/web-export/export-artboard-dialog/script.md).

# Script Page options

Page JavaScript

The **Script** field works the same as the [Stylesheet name](/web-export/export-artboard-dialog/stylesheet-template.md) field, the [Stylesheet template](/web-export/export-artboard-dialog/stylesheet-template.md) and [Expected Stylesheet output](/web-export/export-artboard-dialog/expected-stylesheet-output.md).&#x20;

The Script name is the name of the file to that contains the page JavaScript when the External JavaScript option is checked.&#x20;

You can set the External Script option to export the JavaScript separately to an external file. &#x20;

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-Lov1r-SVNrGpUoNswsu%2F-LovRVmz2FZoJAfv_wd-%2Fimage.png?alt=media\&token=573f96bd-13d1-4ec8-99c3-1348fa8c4a28)

You can also use [Code Blocks](/web-export/creating-code-blocks.md) to add code to your page.

#### Example Project

{% embed url="<https://github.com/velara3/xd-examples/tree/master/web-export/examples/external-javascript>" %}
Exporting to an external JavaScript file
{% endembed %}
