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:

ParameterTypeDescription
event"did-create-window"The event name.
listener(window: ElectronBrowserWindow, details: ElectronDidCreateWindowDetails) => voidCalled when the did-create-window event is emitted.

Returns: thisThis web contents instance.