> ## Documentation Index
> Fetch the complete documentation index at: https://docs.extractbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# addScriptTag

Adds a `<script>` tag into the page with the desired content or URL.
Can be used to inject custom JavaScript into the current document.
Example: `addScriptTag(options: { content: "console.log('Injected');" })` or `addScriptTag(options: { url: "https://example.com/script.js" })`
Returns true if the script tag was successfully added.

## Definition

```graphql theme={null}
addScriptTag(
  options: AddScriptTagOptions!
): Boolean!
```

## Arguments

### `options`

[AddScriptTagOptions!](/reference/graphql/inputs/add-script-tag-options)

Options for the script tag, such as content, URL, or ID.

## Returns

[Boolean!](/reference/graphql/scalars/boolean)

The `Boolean` scalar type represents `true` or `false`.
