puppeteer/docs/api/puppeteer.frameaddscripttagoptions.md

22 lines
1.6 KiB
Markdown
Raw Normal View History

2022-07-05 13:41:43 +00:00
---
sidebar_label: FrameAddScriptTagOptions
---
# FrameAddScriptTagOptions interface
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
export interface FrameAddScriptTagOptions
```
## Properties
| Property | Modifiers | Type | Description | Default |
| ----------------------------------------------------------- | --------- | ------ | ----------------------------------------------------------------------------------------------------------------- | ------- |
| [content?](./puppeteer.frameaddscripttagoptions.content.md) | | string | _(Optional)_ JavaScript to be injected into the frame. | |
| [id?](./puppeteer.frameaddscripttagoptions.id.md) | | string | _(Optional)_ Sets the <code>id</code> of the script. | |
| [path?](./puppeteer.frameaddscripttagoptions.path.md) | | string | _(Optional)_ Path to a JavaScript file to be injected into the frame. | |
| [type?](./puppeteer.frameaddscripttagoptions.type.md) | | string | _(Optional)_ Sets the <code>type</code> of the script. Use <code>module</code> in order to load an ES2015 module. | |
| [url?](./puppeteer.frameaddscripttagoptions.url.md) | | string | _(Optional)_ URL of the script to be added. | |