Skip to content

ElectronWebContents.on('did-attach-webview') method

ElectronWebContents › on(‘did-attach-webview’)

Unofficial

Registers a listener for the did-attach-webview event.

Signature:

on($event: "did-attach-webview", listener: ($event: ElectronEvent, webContents: ElectronWebContents) => void): this

Parameters:

ParameterTypeDescription
$event"did-attach-webview"
listener($event: ElectronEvent, webContents: ElectronWebContents) => voidCalled when the did-attach-webview event is emitted.

Returns: this — This web contents instance.