Skip to content

ElectronWebContents.on('did-create-window') method

ElectronWebContents › on(‘did-create-window’)

Unofficial

Registers a listener for the did-create-window event.

Signature:

on(event: "did-create-window", listener: (window: ElectronBrowserWindow, details: ElectronDidCreateWindowDetails) => void): this

Parameters:

Parameter Type Description
event "did-create-window" The event name.
listener (window: ElectronBrowserWindow, details: ElectronDidCreateWindowDetails) => void Called when the did-create-window event is emitted.

Returns: thisThis web contents instance.