Skip to content

ElectronWebContents.on('did-start-navigation') method

ElectronWebContents › on(‘did-start-navigation’)

Unofficial

Registers a listener for the did-start-navigation event.

Signature:

on(event: "did-start-navigation", listener: (event: ElectronEvent, url: string, isInPlace: boolean, isMainFrame: boolean, frameProcessId: number, frameRoutingId: number) => void): this

Parameters:

Parameter Type Description
event "did-start-navigation" The event name.
listener (event: ElectronEvent, url: string, isInPlace: boolean, isMainFrame: boolean, frameProcessId: number, frameRoutingId: number) => void Called when the did-start-navigation event is emitted.

Returns: thisThis web contents instance.