puppeteer/docs/api/puppeteer.frameaddscripttagoptions.md
jrandolf f07ad2c661
fix: update documentation on configuring puppeteer (#9150)
This PR updates the docs regarding configuring puppeteer. In addition,
some changes have been made to the documentation generator to show
default values on the documentation site.

Also fixes: https://github.com/puppeteer/puppeteer/pull/9144
2022-10-24 09:07:05 +02:00

1.7 KiB

sidebar_label
FrameAddScriptTagOptions

FrameAddScriptTagOptions interface

Signature:

export interface FrameAddScriptTagOptions

Properties

Property Modifiers Type Description Default
content? string (Optional) JavaScript to be injected into the frame.
id? string (Optional) Sets the id of the script.
path? string (Optional) Path to a JavaScript file to be injected into the frame.
type? string (Optional) Sets the type of the script. Use module in order to load an ES2015 module.
url? string (Optional) URL of the script to be added.