puppeteer/docs/api/puppeteer.frameaddscripttagoptions.md

132 lines
1.0 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
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th><th>
Default
</th></tr></thead>
<tbody><tr><td>
content
</td><td>
`optional`
</td><td>
string
</td><td>
JavaScript to be injected into the frame.
</td><td>
</td></tr>
<tr><td>
id
</td><td>
`optional`
</td><td>
string
</td><td>
Sets the `id` of the script.
</td><td>
</td></tr>
<tr><td>
path
</td><td>
`optional`
</td><td>
string
</td><td>
Path to a JavaScript file to be injected into the frame.
</td><td>
</td></tr>
<tr><td>
type
</td><td>
`optional`
</td><td>
string
</td><td>
Sets the `type` of the script. Use `module` in order to load an ES2015 module.
</td><td>
</td></tr>
<tr><td>
url
</td><td>
`optional`
</td><td>
string
</td><td>
URL of the script to be added.
</td><td>
</td></tr>
</tbody></table>