puppeteer/docs/api/puppeteer.frameaddscripttagoptions.md
2022-07-01 13:34:41 +02:00

1.3 KiB

sidebar_label
FrameAddScriptTagOptions

FrameAddScriptTagOptions interface

Signature:

export interface FrameAddScriptTagOptions

Properties

Property Modifiers Type Description
content? string (Optional) Raw JavaScript content to be injected into the frame.
path? string (Optional) The path to a JavaScript file to be injected into the frame.
type? string (Optional) Set the script's type. Use module in order to load an ES2015 module.
url? string (Optional) the URL of the script to be added.