ElectronWebContents.on('did-create-window') method
ElectronWebContents › on(‘did-create-window’)
Unofficial
Registers a listener for thedid-create-window event. Signature:
on(event: "did-create-window", listener: (window: ElectronBrowserWindow, details: ElectronDidCreateWindowDetails) => void): thisParameters:
| 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: this — This web contents instance.