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:

Parameter Type Description
event "did-navigate" The event name.
listener (event: ElectronEvent, url: string, httpResponseCode: number, httpStatusText: string) => void Called when the did-navigate event is emitted.

Returns: thisThis web contents instance.