Skip to content

ElectronWebContents.on('did-navigate') method

ElectronWebContents › on(‘did-navigate’)

Unofficial

Registers a listener for the did-navigate event.

Signature:

on(event: "did-navigate", listener: (event: ElectronEvent, url: string, httpResponseCode: number, httpStatusText: string) => void): this

Parameters:

ParameterTypeDescription
event"did-navigate"The event name.
listener(event: ElectronEvent, url: string, httpResponseCode: number, httpStatusText: string) => voidCalled when the did-navigate event is emitted.

Returns: thisThis web contents instance.