Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
interface Protocol.Page.WindowOpenEvent
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { WindowOpenEvent } = Protocol.Page;

Fired when a new window is going to be opened, via window.open(), link click, form submission, etc.

Properties

url: string

The URL for the new window.

windowName: string

Window name.

windowFeatures: string[]

An array of enabled window features.

userGesture: boolean

Whether or not it was triggered by user gesture.