# Script Page options

The **Script** field works the same as the [Stylesheet name](https://velara-3.gitbook.io/web-export/export-artboard-dialog/stylesheet-template) field, the [Stylesheet template](https://velara-3.gitbook.io/web-export/export-artboard-dialog/stylesheet-template) and [Expected Stylesheet output](https://velara-3.gitbook.io/web-export/export-artboard-dialog/expected-stylesheet-output).&#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](https://velara-3.gitbook.io/web-export/creating-code-blocks) 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 %}


---

# 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://velara-3.gitbook.io/web-export/export-artboard-dialog/script.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.
