Adds a HTMLStyleElement
into the frame with the desired URL
class Frame {
addStyleTag(
options: Omit<FrameAddStyleTagOptions, 'url'>,
): Promise<ElementHandle<HTMLStyleElement>>;
}
Parameter | Type | Description |
---|---|---|
options | Omit<[FrameAddStyleTagOptions](./puppeteer.frameaddstyletagoptions.md), 'url'> |
Returns:
Promise<ElementHandle<HTMLStyleElement>>
An element handle to the loaded <style>
element.
Adds a HTMLLinkElement
into the frame with the desired URL
class Frame {
addStyleTag(
options: FrameAddStyleTagOptions,
): Promise<ElementHandle<HTMLLinkElement>>;
}
Parameter | Type | Description |
---|---|---|
options | [FrameAddStyleTagOptions](./puppeteer.frameaddstyletagoptions.md) |
Returns:
Promise<ElementHandle<HTMLLinkElement>>
An element handle to the loaded <link>
element.