mirror of
https://github.com/hanzoai/puppeteer.git
synced 2026-09-24 17:02:14 +00:00
1.6 KiB
1.6 KiB
sidebar_label
| sidebar_label |
|---|
| Frame.addStyleTag |
Frame.addStyleTag() method
addStyleTag(): Promise<ElementHandle<HTMLStyleElement>>
Adds a HTMLStyleElement into the frame with the desired URL
Signature
class Frame {
addStyleTag(
options: Omit<FrameAddStyleTagOptions, 'url'>,
): Promise<ElementHandle<HTMLStyleElement>>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
Omit<FrameAddStyleTagOptions, 'url'> |
Returns:
Promise<ElementHandle<HTMLStyleElement>>
An element handle to the loaded <style> element.
addStyleTag(): Promise<ElementHandle<HTMLLinkElement>>
Adds a HTMLLinkElement into the frame with the desired URL
Signature
class Frame {
addStyleTag(
options: FrameAddStyleTagOptions,
): Promise<ElementHandle<HTMLLinkElement>>;
}
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
options |
Returns:
Promise<ElementHandle<HTMLLinkElement>>
An element handle to the loaded <link> element.